blob: 3075d676cc0cb22ef418639c1ffb01054511af74 [file] [log] [blame]
Dan Willemsen377737a2016-08-15 15:02:23 -07001subdirs = [
2 "androidmk",
Jeff Gastonaff66e52017-06-19 15:39:54 -07003 "bpfix",
Dan Willemsen377737a2016-08-15 15:02:23 -07004 "cmd/*",
Jeff Gastonf1fd45e2017-08-09 18:25:28 -07005 "fs",
6 "finder",
Jeff Gaston01547b22017-08-21 20:13:28 -07007 "jar",
Jeff Gaston11b5c512017-10-12 12:19:14 -07008 "zip",
Dan Willemsen377737a2016-08-15 15:02:23 -07009 "third_party/zip",
Dan Willemsen1e704462016-08-21 15:17:17 -070010 "ui/*",
Dan Willemsen377737a2016-08-15 15:02:23 -070011]
Colin Cross68f55102015-03-25 14:43:57 -070012
13bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070014 name: "soong",
15 pkgPath: "android/soong",
16 deps: [
17 "blueprint",
18 ],
19 srcs: [
20 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070021 ],
22}
23
Colin Cross80031312015-03-14 14:28:22 -070024//
Dan Willemsen00fcbde2016-11-17 00:25:59 -080025// Defaults to enable various configurations of host bionic
26//
27
28cc_defaults {
29 name: "linux_bionic_supported",
30 host_supported: true,
31 target: {
32 host: {
33 enabled: false,
34 },
35 linux_bionic: {
36 enabled: true,
37 },
38 },
39}
40
41//
Colin Cross80031312015-03-14 14:28:22 -070042// C static libraries extracted from the gcc toolchain
43//
44
Colin Crossba442872015-03-14 14:26:32 -070045toolchain_library {
46 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -080047 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -070048 vendor_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -080049 ramdisk_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090050 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010051 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -070052
Dan Willemseneba363e2015-07-08 18:11:14 -070053 arch: {
54 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070055 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
56 },
57 arm64: {
58 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
59 },
60 x86: {
61 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
62 },
63 x86_64: {
64 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib64/libatomic.a",
Dan Willemseneba363e2015-07-08 18:11:14 -070065 },
66 },
Colin Crossba442872015-03-14 14:26:32 -070067}
Colin Cross3f40fa42015-01-30 17:27:36 -080068
Colin Crossba442872015-03-14 14:26:32 -070069toolchain_library {
70 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -080071 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -070072 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090073 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010074 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -070075
Dan Willemseneba363e2015-07-08 18:11:14 -070076 arch: {
77 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070078 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
79 },
80 arm64: {
81 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
82 },
83 x86: {
84 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
85 },
86 x86_64: {
87 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a",
Dan Willemseneba363e2015-07-08 18:11:14 -070088 },
89 },
Colin Crossba442872015-03-14 14:26:32 -070090}
Colin Cross3f40fa42015-01-30 17:27:36 -080091
Colin Crossba442872015-03-14 14:26:32 -070092toolchain_library {
Yi Kongacee27c2019-03-29 20:05:14 -070093 name: "libgcc_stripped",
94 defaults: ["linux_bionic_supported"],
95 vendor_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -080096 ramdisk_available: true,
Yi Kongacee27c2019-03-29 20:05:14 -070097 recovery_available: true,
dimitry0e55ba62019-05-06 10:58:10 +020098 native_bridge_supported: true,
Peter Collingbournee5ba2862019-12-10 18:37:45 -080099 sdk_version: "current",
Yi Kongacee27c2019-03-29 20:05:14 -0700100
101 arch: {
102 arm: {
103 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
Yi Kong14b65d12020-04-04 02:14:50 +0800104 repack_objects_to_keep: [],
105 enabled: false,
Yi Kongacee27c2019-03-29 20:05:14 -0700106 },
107 arm64: {
108 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
Thiébaud Weksteen5e291c22020-06-26 14:04:00 +0200109 repack_objects_to_keep: [
110 "unwind-dw2.o",
111 "unwind-dw2-fde-dip.o",
112 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700113 },
114 x86: {
115 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
Thiébaud Weksteen5e291c22020-06-26 14:04:00 +0200116 repack_objects_to_keep: [
117 "unwind-dw2.o",
118 "unwind-dw2-fde-dip.o",
119 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700120 },
121 x86_64: {
122 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a",
Thiébaud Weksteen5e291c22020-06-26 14:04:00 +0200123 repack_objects_to_keep: [
124 "unwind-dw2.o",
125 "unwind-dw2-fde-dip.o",
126 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700127 },
128 },
Yi Kongacee27c2019-03-29 20:05:14 -0700129}
130
131toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800132 name: "libwinpthread",
133 host_supported: true,
134 enabled: false,
135 target: {
136 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700137 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800138 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700139 windows_x86: {
140 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
141 },
142 windows_x86_64: {
143 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
144 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800145 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800146 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800147}
148
149toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700150 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800151 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700152
Dan Willemseneba363e2015-07-08 18:11:14 -0700153 arch: {
154 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700155 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
156 },
157 arm64: {
158 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
159 },
160 x86: {
161 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
162 },
163 x86_64: {
164 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcov.a",
Dan Willemseneba363e2015-07-08 18:11:14 -0700165 },
166 },
Colin Crossba442872015-03-14 14:26:32 -0700167}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900168
169kernel_headers {
170 name: "device_kernel_headers",
171 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -0700172 recovery_available: true,
Jiyong Parkd773eb32017-07-03 13:18:12 +0900173}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700174
175cc_genrule {
176 name: "host_bionic_linker_asm",
177 host_supported: true,
178 device_supported: false,
179 target: {
180 linux_bionic: {
181 enabled: true,
182 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700183 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700184 enabled: false,
185 },
186 darwin: {
187 enabled: false,
188 },
189 },
190 tools: ["extract_linker"],
191 cmd: "$(location) -s $(out) $(in)",
192 srcs: [":linker"],
193 out: ["linker.s"],
194}
195
196cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700197 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700198 host_supported: true,
199 device_supported: false,
200 target: {
201 linux_bionic: {
202 enabled: true,
203 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700204 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700205 enabled: false,
206 },
207 darwin: {
208 enabled: false,
209 },
210 },
211 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700212 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700213 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700214 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700215}