blob: bcf831d188fed574be3cc6e8543dd458c0da3a75 [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",
Colin Crossb6715442017-10-24 11:13:31 -070080 "android/util_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070081 "android/variable_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070082 ],
Colin Crossba442872015-03-14 14:26:32 -070083}
Colin Cross3f40fa42015-01-30 17:27:36 -080084
Colin Crossba442872015-03-14 14:26:32 -070085bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070086 name: "soong-cc-config",
87 pkgPath: "android/soong/cc/config",
88 deps: [
89 "soong-android",
90 ],
91 srcs: [
92 "cc/config/clang.go",
93 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -070094 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070095 "cc/config/toolchain.go",
96
97 "cc/config/arm_device.go",
98 "cc/config/arm64_device.go",
99 "cc/config/mips_device.go",
100 "cc/config/mips64_device.go",
101 "cc/config/x86_device.go",
102 "cc/config/x86_64_device.go",
103
104 "cc/config/x86_darwin_host.go",
105 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700106 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700107 "cc/config/x86_windows_host.go",
108 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700109 testSrcs: [
110 "cc/config/tidy_test.go",
111 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700112}
113
114bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700115 name: "soong-cc",
116 pkgPath: "android/soong/cc",
117 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800118 "blueprint",
119 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700120 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700121 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700122 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700123 "soong-genrule",
Colin Cross303e21f2018-08-07 16:49:25 -0700124 "soong-tradefed",
Colin Cross3f40fa42015-01-30 17:27:36 -0800125 ],
Colin Crossba442872015-03-14 14:26:32 -0700126 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700127 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800128 "cc/builder.go",
129 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700130 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800131 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700132 "cc/gen.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700133 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800134 "cc/makevars.go",
Pirama Arumuga Nainarada83ec2017-08-31 23:38:27 -0700135 "cc/pgo.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700136 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700137 "cc/proto.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700138 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800139 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800140 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800141 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700142 "cc/strip.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700143 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800144 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900145 "cc/vndk.go",
Justin Yun71549282017-11-17 12:10:28 +0900146 "cc/vndk_prebuilt.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800147
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800148 "cc/cmakelists.go",
Alex Lightec868fc2018-04-17 16:50:48 -0700149 "cc/compdb.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700150 "cc/compiler.go",
151 "cc/installer.go",
152 "cc/linker.go",
153
154 "cc/binary.go",
155 "cc/library.go",
156 "cc/object.go",
157 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700158 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700159
160 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700161 "cc/ndk_headers.go",
162 "cc/ndk_library.go",
163 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700164
165 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900166
167 "cc/kernel_headers.go",
Dan Willemsen3e5bdf22017-09-13 18:37:08 -0700168
169 "cc/genrule.go",
Jiyong Park374510b2018-03-19 18:23:01 +0900170
171 "cc/vendor_public_library.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800172 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700173 testSrcs: [
174 "cc/cc_test.go",
Colin Crossf18e1102017-11-16 14:33:08 -0800175 "cc/gen_test.go",
Colin Crossad59e752017-11-16 14:29:11 -0800176 "cc/library_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800177 "cc/test_data_test.go",
Logan Chien031d2b32018-07-26 00:19:50 +0800178 "cc/util_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700179 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700180 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700181}
Colin Cross3f40fa42015-01-30 17:27:36 -0800182
Colin Cross5049f022015-03-18 13:28:46 -0700183bootstrap_go_package {
184 name: "soong-genrule",
185 pkgPath: "android/soong/genrule",
186 deps: [
187 "blueprint",
188 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700189 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700190 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700191 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700192 ],
193 srcs: [
194 "genrule/genrule.go",
195 ],
Colin Cross2a076922018-10-04 23:28:25 -0700196 testSrcs: [
197 "genrule/genrule_test.go",
198 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700199 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700200}
Colin Cross2fe66872015-03-30 17:20:39 -0700201
Colin Cross2fe66872015-03-30 17:20:39 -0700202bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800203 name: "soong-phony",
204 pkgPath: "android/soong/phony",
205 deps: [
206 "blueprint",
207 "soong-android",
208 ],
209 srcs: [
210 "phony/phony.go",
211 ],
212 pluginFor: ["soong_build"],
213}
214
215bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700216 name: "soong-java",
217 pkgPath: "android/soong/java",
218 deps: [
219 "blueprint",
220 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700221 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700222 "soong-android",
Colin Crossa4f08812018-10-02 22:03:40 -0700223 "soong-cc",
Colin Cross0607cf72015-04-28 13:28:51 -0700224 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700225 "soong-java-config",
Colin Cross303e21f2018-08-07 16:49:25 -0700226 "soong-tradefed",
Colin Cross2fe66872015-03-30 17:20:39 -0700227 ],
228 srcs: [
Colin Cross3bc7ffa2017-11-22 16:19:37 -0800229 "java/aapt2.go",
Colin Crossfabb6082018-02-20 17:22:23 -0800230 "java/aar.go",
Colin Cross31656952018-05-24 16:11:20 -0700231 "java/android_manifest.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700232 "java/android_resources.go",
Dan Willemsen218f6562015-07-08 18:13:11 -0700233 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700234 "java/app_builder.go",
235 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700236 "java/builder.go",
Colin Crossf0056cb2017-12-22 15:56:08 -0800237 "java/dex.go",
Nan Zhang581fd212018-01-10 16:06:12 -0800238 "java/droiddoc.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700239 "java/gen.go",
Colin Cross54250902017-12-05 09:28:08 -0800240 "java/genrule.go",
Colin Crosscb933592017-11-22 13:49:43 -0800241 "java/jacoco.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700242 "java/java.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700243 "java/jdeps.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700244 "java/java_resources.go",
Jiyong Park58c518b2018-05-12 22:29:12 +0900245 "java/prebuilt_apis.go",
Colin Cross6af17aa2017-09-20 12:59:05 -0700246 "java/proto.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +0900247 "java/sdk_library.go",
Colin Crossb2559a02018-04-19 15:26:10 -0700248 "java/support_libraries.go",
Colin Cross1369cdb2017-09-29 17:58:17 -0700249 "java/system_modules.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700250 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700251 testSrcs: [
Colin Cross44f06682017-11-29 00:17:36 -0800252 "java/app_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700253 "java/java_test.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700254 "java/jdeps_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700255 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700256 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700257}
258
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800259bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700260 name: "soong-java-config",
261 pkgPath: "android/soong/java/config",
262 deps: [
263 "blueprint-proptools",
264 "soong-android",
265 ],
266 srcs: [
267 "java/config/config.go",
Colin Crossfee57cb2017-09-05 13:16:45 -0700268 "java/config/error_prone.go",
Colin Cross93e85952017-08-15 13:34:18 -0700269 "java/config/kotlin.go",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700270 "java/config/makevars.go",
271 ],
272}
273
274bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800275 name: "soong-python",
276 pkgPath: "android/soong/python",
277 deps: [
278 "blueprint",
279 "soong-android",
280 ],
281 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700282 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800283 "python/binary.go",
284 "python/builder.go",
Nan Zhanga3fc4ba2017-07-20 17:43:37 -0700285 "python/defaults.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700286 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800287 "python/library.go",
Nan Zhangb8fa1972017-12-22 16:12:00 -0800288 "python/proto.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800289 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700290 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800291 ],
292 testSrcs: [
293 "python/python_test.go",
294 ],
295 pluginFor: ["soong_build"],
296}
297
Jeff Gastonefc1b412017-03-29 17:29:06 -0700298bootstrap_go_package {
299 name: "soong-shared",
300 pkgPath: "android/soong/shared",
301 srcs: [
302 "shared/paths.go",
303 ],
304}
305
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900306bootstrap_go_package {
Colin Cross303e21f2018-08-07 16:49:25 -0700307 name: "soong-tradefed",
308 pkgPath: "android/soong/tradefed",
309 deps: [
310 "blueprint",
311 "soong-android",
312 ],
313 srcs: [
314 "tradefed/autogen.go",
315 "tradefed/config.go",
316 "tradefed/makevars.go",
317 ],
318 pluginFor: ["soong_build"],
319}
320
321bootstrap_go_package {
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900322 name: "soong-xml",
323 pkgPath: "android/soong/xml",
324 deps: [
325 "blueprint",
326 "blueprint-pathtools",
327 "soong",
328 "soong-android",
329 ],
330 srcs: [
331 "xml/xml.go",
332 ],
333 testSrcs: [
334 "xml/xml_test.go",
335 ],
336 pluginFor: ["soong_build"],
337}
338
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900339bootstrap_go_package {
340 name: "soong-apex",
341 pkgPath: "android/soong/apex",
342 deps: [
343 "blueprint",
344 "soong",
345 "soong-android",
346 "soong-cc",
347 "soong-java",
348 ],
349 srcs: [
350 "apex/apex.go",
Jiyong Parkff1458f2018-10-12 21:49:38 +0900351 "apex/key.go",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900352 ],
353 pluginFor: ["soong_build"],
354}
355
Colin Cross80031312015-03-14 14:28:22 -0700356//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800357// Defaults to enable various configurations of host bionic
358//
359
360cc_defaults {
361 name: "linux_bionic_supported",
362 host_supported: true,
363 target: {
364 host: {
365 enabled: false,
366 },
367 linux_bionic: {
368 enabled: true,
369 },
370 },
371}
372
373//
Colin Cross80031312015-03-14 14:28:22 -0700374// C static libraries extracted from the gcc toolchain
375//
376
Colin Crossba442872015-03-14 14:26:32 -0700377toolchain_library {
378 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800379 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700380 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900381 recovery_available: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700382
Dan Willemseneba363e2015-07-08 18:11:14 -0700383 arch: {
384 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700385 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
386 },
387 arm64: {
388 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
389 },
390 x86: {
391 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
392 },
393 x86_64: {
394 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 -0700395 },
396 },
Colin Crossba442872015-03-14 14:26:32 -0700397}
Colin Cross3f40fa42015-01-30 17:27:36 -0800398
Colin Crossba442872015-03-14 14:26:32 -0700399toolchain_library {
400 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800401 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700402 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900403 recovery_available: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700404
Dan Willemseneba363e2015-07-08 18:11:14 -0700405 arch: {
406 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700407 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
408 },
409 arm64: {
410 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
411 },
412 x86: {
413 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
414 },
415 x86_64: {
416 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 -0700417 },
418 },
Colin Crossba442872015-03-14 14:26:32 -0700419}
Colin Cross3f40fa42015-01-30 17:27:36 -0800420
Colin Crossba442872015-03-14 14:26:32 -0700421toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800422 name: "libwinpthread",
423 host_supported: true,
424 enabled: false,
425 target: {
426 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700427 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800428 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700429 windows_x86: {
430 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
431 },
432 windows_x86_64: {
433 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
434 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800435 },
436}
437
438toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700439 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800440 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700441
Dan Willemseneba363e2015-07-08 18:11:14 -0700442 arch: {
443 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700444 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
445 },
446 arm64: {
447 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
448 },
449 x86: {
450 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
451 },
452 x86_64: {
453 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 -0700454 },
455 },
Colin Crossba442872015-03-14 14:26:32 -0700456}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900457
458kernel_headers {
459 name: "device_kernel_headers",
460 vendor: true,
461}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700462
463cc_genrule {
464 name: "host_bionic_linker_asm",
465 host_supported: true,
466 device_supported: false,
467 target: {
468 linux_bionic: {
469 enabled: true,
470 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700471 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700472 enabled: false,
473 },
474 darwin: {
475 enabled: false,
476 },
477 },
478 tools: ["extract_linker"],
479 cmd: "$(location) -s $(out) $(in)",
480 srcs: [":linker"],
481 out: ["linker.s"],
482}
483
484cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700485 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700486 host_supported: true,
487 device_supported: false,
488 target: {
489 linux_bionic: {
490 enabled: true,
491 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700492 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700493 enabled: false,
494 },
495 darwin: {
496 enabled: false,
497 },
498 },
499 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700500 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700501 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700502 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700503}