blob: 97f786edc7dcd8c96f45e2e6ac22544d86582316 [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 {
14 name: "soong-env",
15 pkgPath: "android/soong/env",
16 srcs: [
17 "env/env.go",
18 ],
19}
20
Colin Crossba442872015-03-14 14:26:32 -070021bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070022 name: "soong",
23 pkgPath: "android/soong",
24 deps: [
25 "blueprint",
26 ],
27 srcs: [
28 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070029 ],
30}
31
32bootstrap_go_package {
Colin Cross635c3b02016-05-18 15:37:25 -070033 name: "soong-android",
34 pkgPath: "android/soong/android",
Colin Crossba442872015-03-14 14:26:32 -070035 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080036 "blueprint",
37 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070038 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070039 "soong-env",
Colin Cross3f40fa42015-01-30 17:27:36 -080040 ],
Colin Crossba442872015-03-14 14:26:32 -070041 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070042 "android/androidmk.go",
Jiyong Park9d452992018-10-03 00:38:19 +090043 "android/apex.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070044 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070045 "android/arch.go",
46 "android/config.go",
47 "android/defaults.go",
48 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070049 "android/expand.go",
Pirama Arumuga Nainar955dc492018-04-17 14:58:42 -070050 "android/filegroup.go",
Colin Cross178a5092016-09-13 13:42:32 -070051 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070052 "android/makevars.go",
53 "android/module.go",
54 "android/mutator.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080055 "android/namespace.go",
Steven Moreland65b3fd92017-12-06 14:18:35 -080056 "android/neverallow.go",
Colin Cross9272ade2016-08-17 15:24:12 -070057 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070058 "android/package_ctx.go",
59 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070060 "android/prebuilt.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +090061 "android/prebuilt_etc.go",
Colin Cross38f794e2017-09-07 10:53:07 -070062 "android/proto.go",
Colin Cross798bfce2016-10-12 14:28:16 -070063 "android/register.go",
Colin Cross0875c522017-11-28 17:34:01 -080064 "android/singleton.go",
Colin Crosscec81712017-07-13 14:43:27 -070065 "android/testing.go",
Colin Cross635c3b02016-05-18 15:37:25 -070066 "android/util.go",
67 "android/variable.go",
Colin Crosse87040b2017-12-11 15:52:26 -080068 "android/writedocs.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070069
70 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070071 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080072 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070073 testSrcs: [
Jeff Gastonf5f6e492017-11-20 14:31:11 -080074 "android/config_test.go",
Colin Cross6bde0942016-11-04 14:36:38 -070075 "android/expand_test.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080076 "android/namespace_test.go",
Logan Chienee97c3e2018-03-12 16:34:26 +080077 "android/neverallow_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070078 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070079 "android/prebuilt_test.go",
Jiyong Park139a2e62018-10-26 21:49:39 +090080 "android/prebuilt_etc_test.go",
Colin Crossb6715442017-10-24 11:13:31 -070081 "android/util_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070082 "android/variable_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070083 ],
Colin Crossba442872015-03-14 14:26:32 -070084}
Colin Cross3f40fa42015-01-30 17:27:36 -080085
Colin Crossba442872015-03-14 14:26:32 -070086bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070087 name: "soong-cc-config",
88 pkgPath: "android/soong/cc/config",
89 deps: [
90 "soong-android",
91 ],
92 srcs: [
93 "cc/config/clang.go",
94 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -070095 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070096 "cc/config/toolchain.go",
97
98 "cc/config/arm_device.go",
99 "cc/config/arm64_device.go",
100 "cc/config/mips_device.go",
101 "cc/config/mips64_device.go",
102 "cc/config/x86_device.go",
103 "cc/config/x86_64_device.go",
104
105 "cc/config/x86_darwin_host.go",
106 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700107 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700108 "cc/config/x86_windows_host.go",
109 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700110 testSrcs: [
111 "cc/config/tidy_test.go",
112 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700113}
114
115bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700116 name: "soong-cc",
117 pkgPath: "android/soong/cc",
118 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800119 "blueprint",
120 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700121 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700122 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700123 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700124 "soong-genrule",
Colin Cross303e21f2018-08-07 16:49:25 -0700125 "soong-tradefed",
Colin Cross3f40fa42015-01-30 17:27:36 -0800126 ],
Colin Crossba442872015-03-14 14:26:32 -0700127 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700128 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800129 "cc/builder.go",
130 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700131 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800132 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700133 "cc/gen.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700134 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800135 "cc/makevars.go",
Pirama Arumuga Nainarada83ec2017-08-31 23:38:27 -0700136 "cc/pgo.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700137 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700138 "cc/proto.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700139 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800140 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800141 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800142 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700143 "cc/strip.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700144 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800145 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900146 "cc/vndk.go",
Justin Yun71549282017-11-17 12:10:28 +0900147 "cc/vndk_prebuilt.go",
Ivan Lozano074ec482018-11-21 08:59:37 -0800148 "cc/xom.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800149
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800150 "cc/cmakelists.go",
Alex Lightec868fc2018-04-17 16:50:48 -0700151 "cc/compdb.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700152 "cc/compiler.go",
153 "cc/installer.go",
154 "cc/linker.go",
155
156 "cc/binary.go",
157 "cc/library.go",
158 "cc/object.go",
159 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700160 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700161
162 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700163 "cc/ndk_headers.go",
164 "cc/ndk_library.go",
165 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700166
167 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900168
169 "cc/kernel_headers.go",
Dan Willemsen3e5bdf22017-09-13 18:37:08 -0700170
171 "cc/genrule.go",
Jiyong Park374510b2018-03-19 18:23:01 +0900172
173 "cc/vendor_public_library.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800174 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700175 testSrcs: [
176 "cc/cc_test.go",
Colin Crossf18e1102017-11-16 14:33:08 -0800177 "cc/gen_test.go",
Colin Crossef354482018-10-23 11:27:50 -0700178 "cc/genrule_test.go",
Colin Crossad59e752017-11-16 14:29:11 -0800179 "cc/library_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800180 "cc/test_data_test.go",
Logan Chien031d2b32018-07-26 00:19:50 +0800181 "cc/util_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700182 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700183 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700184}
Colin Cross3f40fa42015-01-30 17:27:36 -0800185
Colin Cross5049f022015-03-18 13:28:46 -0700186bootstrap_go_package {
187 name: "soong-genrule",
188 pkgPath: "android/soong/genrule",
189 deps: [
190 "blueprint",
191 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700192 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700193 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700194 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700195 ],
196 srcs: [
197 "genrule/genrule.go",
198 ],
Colin Cross2a076922018-10-04 23:28:25 -0700199 testSrcs: [
200 "genrule/genrule_test.go",
201 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700202 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700203}
Colin Cross2fe66872015-03-30 17:20:39 -0700204
Colin Cross2fe66872015-03-30 17:20:39 -0700205bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800206 name: "soong-phony",
207 pkgPath: "android/soong/phony",
208 deps: [
209 "blueprint",
210 "soong-android",
211 ],
212 srcs: [
213 "phony/phony.go",
214 ],
215 pluginFor: ["soong_build"],
216}
217
218bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700219 name: "soong-java",
220 pkgPath: "android/soong/java",
221 deps: [
222 "blueprint",
223 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700224 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700225 "soong-android",
Colin Crossa4f08812018-10-02 22:03:40 -0700226 "soong-cc",
Colin Cross43f08db2018-11-12 10:13:39 -0800227 "soong-dexpreopt",
Colin Cross0607cf72015-04-28 13:28:51 -0700228 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700229 "soong-java-config",
Colin Cross303e21f2018-08-07 16:49:25 -0700230 "soong-tradefed",
Colin Cross2fe66872015-03-30 17:20:39 -0700231 ],
232 srcs: [
Colin Cross3bc7ffa2017-11-22 16:19:37 -0800233 "java/aapt2.go",
Colin Crossfabb6082018-02-20 17:22:23 -0800234 "java/aar.go",
Colin Cross31656952018-05-24 16:11:20 -0700235 "java/android_manifest.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700236 "java/android_resources.go",
Dan Willemsen218f6562015-07-08 18:13:11 -0700237 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700238 "java/app_builder.go",
239 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700240 "java/builder.go",
Colin Crossf0056cb2017-12-22 15:56:08 -0800241 "java/dex.go",
Colin Cross43f08db2018-11-12 10:13:39 -0800242 "java/dexpreopt.go",
Nan Zhang581fd212018-01-10 16:06:12 -0800243 "java/droiddoc.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700244 "java/gen.go",
Colin Cross54250902017-12-05 09:28:08 -0800245 "java/genrule.go",
Colin Cross8faf8fc2019-01-16 15:15:52 -0800246 "java/hiddenapi.go",
Colin Crosscb933592017-11-22 13:49:43 -0800247 "java/jacoco.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700248 "java/java.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700249 "java/jdeps.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700250 "java/java_resources.go",
Jiyong Park58c518b2018-05-12 22:29:12 +0900251 "java/prebuilt_apis.go",
Colin Cross6af17aa2017-09-20 12:59:05 -0700252 "java/proto.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800253 "java/sdk.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +0900254 "java/sdk_library.go",
Colin Crossb2559a02018-04-19 15:26:10 -0700255 "java/support_libraries.go",
Colin Cross1369cdb2017-09-29 17:58:17 -0700256 "java/system_modules.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700257 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700258 testSrcs: [
Colin Cross44f06682017-11-29 00:17:36 -0800259 "java/app_test.go",
Colin Cross638149e2019-01-05 22:12:12 -0800260 "java/dexpreopt_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700261 "java/java_test.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700262 "java/jdeps_test.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800263 "java/sdk_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700264 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700265 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700266}
267
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800268bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700269 name: "soong-java-config",
270 pkgPath: "android/soong/java/config",
271 deps: [
272 "blueprint-proptools",
273 "soong-android",
274 ],
275 srcs: [
276 "java/config/config.go",
Colin Crossfee57cb2017-09-05 13:16:45 -0700277 "java/config/error_prone.go",
Colin Cross93e85952017-08-15 13:34:18 -0700278 "java/config/kotlin.go",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700279 "java/config/makevars.go",
280 ],
281}
282
283bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800284 name: "soong-python",
285 pkgPath: "android/soong/python",
286 deps: [
287 "blueprint",
288 "soong-android",
yelinhsieh80880a32018-11-06 11:49:55 +0800289 "soong-tradefed",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800290 ],
291 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700292 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800293 "python/binary.go",
294 "python/builder.go",
Nan Zhanga3fc4ba2017-07-20 17:43:37 -0700295 "python/defaults.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700296 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800297 "python/library.go",
Nan Zhangb8fa1972017-12-22 16:12:00 -0800298 "python/proto.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800299 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700300 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800301 ],
302 testSrcs: [
303 "python/python_test.go",
304 ],
305 pluginFor: ["soong_build"],
306}
307
Jeff Gastonefc1b412017-03-29 17:29:06 -0700308bootstrap_go_package {
309 name: "soong-shared",
310 pkgPath: "android/soong/shared",
311 srcs: [
312 "shared/paths.go",
313 ],
314}
315
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900316bootstrap_go_package {
Colin Cross303e21f2018-08-07 16:49:25 -0700317 name: "soong-tradefed",
318 pkgPath: "android/soong/tradefed",
319 deps: [
320 "blueprint",
321 "soong-android",
322 ],
323 srcs: [
324 "tradefed/autogen.go",
325 "tradefed/config.go",
326 "tradefed/makevars.go",
327 ],
328 pluginFor: ["soong_build"],
329}
330
331bootstrap_go_package {
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900332 name: "soong-xml",
333 pkgPath: "android/soong/xml",
334 deps: [
335 "blueprint",
336 "blueprint-pathtools",
337 "soong",
338 "soong-android",
339 ],
340 srcs: [
341 "xml/xml.go",
342 ],
343 testSrcs: [
344 "xml/xml_test.go",
345 ],
346 pluginFor: ["soong_build"],
347}
348
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900349bootstrap_go_package {
350 name: "soong-apex",
351 pkgPath: "android/soong/apex",
352 deps: [
353 "blueprint",
354 "soong",
355 "soong-android",
356 "soong-cc",
357 "soong-java",
358 ],
359 srcs: [
360 "apex/apex.go",
Jiyong Parkff1458f2018-10-12 21:49:38 +0900361 "apex/key.go",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900362 ],
Jiyong Park25fc6a92018-11-18 18:02:45 +0900363 testSrcs: [
364 "apex/apex_test.go",
365 ],
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900366 pluginFor: ["soong_build"],
367}
368
Colin Cross80031312015-03-14 14:28:22 -0700369//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800370// Defaults to enable various configurations of host bionic
371//
372
373cc_defaults {
374 name: "linux_bionic_supported",
375 host_supported: true,
376 target: {
377 host: {
378 enabled: false,
379 },
380 linux_bionic: {
381 enabled: true,
382 },
383 },
384}
385
386//
Colin Cross80031312015-03-14 14:28:22 -0700387// C static libraries extracted from the gcc toolchain
388//
389
Colin Crossba442872015-03-14 14:26:32 -0700390toolchain_library {
391 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800392 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700393 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900394 recovery_available: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700395
Dan Willemseneba363e2015-07-08 18:11:14 -0700396 arch: {
397 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700398 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
399 },
400 arm64: {
401 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
402 },
403 x86: {
404 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
405 },
406 x86_64: {
407 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 -0700408 },
409 },
Colin Crossba442872015-03-14 14:26:32 -0700410}
Colin Cross3f40fa42015-01-30 17:27:36 -0800411
Colin Crossba442872015-03-14 14:26:32 -0700412toolchain_library {
413 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800414 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700415 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900416 recovery_available: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700417
Dan Willemseneba363e2015-07-08 18:11:14 -0700418 arch: {
419 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700420 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
421 },
422 arm64: {
423 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
424 },
425 x86: {
426 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
427 },
428 x86_64: {
429 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 -0700430 },
431 },
Colin Crossba442872015-03-14 14:26:32 -0700432}
Colin Cross3f40fa42015-01-30 17:27:36 -0800433
Colin Crossba442872015-03-14 14:26:32 -0700434toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800435 name: "libwinpthread",
436 host_supported: true,
437 enabled: false,
438 target: {
439 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700440 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800441 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700442 windows_x86: {
443 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
444 },
445 windows_x86_64: {
446 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
447 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800448 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800449 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800450}
451
452toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700453 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800454 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700455
Dan Willemseneba363e2015-07-08 18:11:14 -0700456 arch: {
457 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700458 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
459 },
460 arm64: {
461 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
462 },
463 x86: {
464 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
465 },
466 x86_64: {
467 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 -0700468 },
469 },
Colin Crossba442872015-03-14 14:26:32 -0700470}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900471
472kernel_headers {
473 name: "device_kernel_headers",
474 vendor: true,
475}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700476
477cc_genrule {
478 name: "host_bionic_linker_asm",
479 host_supported: true,
480 device_supported: false,
481 target: {
482 linux_bionic: {
483 enabled: true,
484 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700485 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700486 enabled: false,
487 },
488 darwin: {
489 enabled: false,
490 },
491 },
492 tools: ["extract_linker"],
493 cmd: "$(location) -s $(out) $(in)",
494 srcs: [":linker"],
495 out: ["linker.s"],
496}
497
498cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700499 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700500 host_supported: true,
501 device_supported: false,
502 target: {
503 linux_bionic: {
504 enabled: true,
505 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700506 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700507 enabled: false,
508 },
509 darwin: {
510 enabled: false,
511 },
512 },
513 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700514 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700515 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700516 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700517}