blob: 866ed2534a1b8d82a27e7bf05f8e0f97cb45a5dc [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,
Justin Yun63e9ec72020-10-29 16:49:43 +090049 product_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -080050 ramdisk_available: true,
Yifan Hong02e7dec2020-10-21 18:38:12 -070051 vendor_ramdisk_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090052 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010053 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -070054
Dan Willemseneba363e2015-07-08 18:11:14 -070055 arch: {
56 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070057 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
58 },
59 arm64: {
60 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
61 },
62 x86: {
63 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
64 },
65 x86_64: {
66 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 -070067 },
68 },
Colin Crossba442872015-03-14 14:26:32 -070069}
Colin Cross3f40fa42015-01-30 17:27:36 -080070
Colin Crossba442872015-03-14 14:26:32 -070071toolchain_library {
72 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -080073 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -070074 vendor_available: true,
Justin Yun63e9ec72020-10-29 16:49:43 +090075 product_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090076 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010077 native_bridge_supported: true,
Jiyong Park99644e92020-11-17 22:21:02 +090078 apex_available: [
79 "//apex_available:platform",
80 "//apex_available:anyapex",
81 ],
Dan Willemsenfeea4df2018-10-07 18:16:48 -070082
Dan Willemseneba363e2015-07-08 18:11:14 -070083 arch: {
84 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070085 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
86 },
87 arm64: {
88 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
89 },
90 x86: {
91 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
92 },
93 x86_64: {
94 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 -070095 },
96 },
Colin Crossba442872015-03-14 14:26:32 -070097}
Colin Cross3f40fa42015-01-30 17:27:36 -080098
Colin Crossba442872015-03-14 14:26:32 -070099toolchain_library {
Yi Kongacee27c2019-03-29 20:05:14 -0700100 name: "libgcc_stripped",
101 defaults: ["linux_bionic_supported"],
102 vendor_available: true,
Justin Yun63e9ec72020-10-29 16:49:43 +0900103 product_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -0800104 ramdisk_available: true,
Yifan Hong02e7dec2020-10-21 18:38:12 -0700105 vendor_ramdisk_available: true,
Yi Kongacee27c2019-03-29 20:05:14 -0700106 recovery_available: true,
dimitry0e55ba62019-05-06 10:58:10 +0200107 native_bridge_supported: true,
Peter Collingbournee5ba2862019-12-10 18:37:45 -0800108 sdk_version: "current",
Yi Kongacee27c2019-03-29 20:05:14 -0700109
110 arch: {
111 arm: {
112 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 +0800113 repack_objects_to_keep: [],
114 enabled: false,
Yi Kongacee27c2019-03-29 20:05:14 -0700115 },
116 arm64: {
117 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 +0200118 repack_objects_to_keep: [
119 "unwind-dw2.o",
120 "unwind-dw2-fde-dip.o",
121 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700122 },
123 x86: {
124 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 +0200125 repack_objects_to_keep: [
126 "unwind-dw2.o",
127 "unwind-dw2-fde-dip.o",
128 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700129 },
130 x86_64: {
131 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 +0200132 repack_objects_to_keep: [
133 "unwind-dw2.o",
134 "unwind-dw2-fde-dip.o",
135 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700136 },
137 },
Yi Kongacee27c2019-03-29 20:05:14 -0700138}
139
140toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800141 name: "libwinpthread",
142 host_supported: true,
143 enabled: false,
144 target: {
145 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700146 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800147 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700148 windows_x86: {
149 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
150 },
151 windows_x86_64: {
152 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
153 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800154 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800155 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800156}
157
158toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700159 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800160 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700161
Dan Willemseneba363e2015-07-08 18:11:14 -0700162 arch: {
163 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700164 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
165 },
166 arm64: {
167 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
168 },
169 x86: {
170 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
171 },
172 x86_64: {
173 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 -0700174 },
175 },
Colin Crossba442872015-03-14 14:26:32 -0700176}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900177
178kernel_headers {
179 name: "device_kernel_headers",
180 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -0700181 recovery_available: true,
Jiyong Parkd773eb32017-07-03 13:18:12 +0900182}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700183
184cc_genrule {
185 name: "host_bionic_linker_asm",
186 host_supported: true,
187 device_supported: false,
188 target: {
189 linux_bionic: {
190 enabled: true,
191 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700192 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700193 enabled: false,
194 },
195 darwin: {
196 enabled: false,
197 },
198 },
199 tools: ["extract_linker"],
200 cmd: "$(location) -s $(out) $(in)",
201 srcs: [":linker"],
202 out: ["linker.s"],
203}
204
205cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700206 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700207 host_supported: true,
208 device_supported: false,
209 target: {
210 linux_bionic: {
211 enabled: true,
212 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700213 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700214 enabled: false,
215 },
216 darwin: {
217 enabled: false,
218 },
219 },
220 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700221 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700222 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700223 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700224}