blob: ee51942cdbb64cbdb71f0b6344969ec982b837f6 [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 Crossfeec25b2019-01-30 17:32:39 -080064 "android/rule_builder.go",
Dan Willemsenb0552672019-01-25 16:04:11 -080065 "android/sh_binary.go",
Colin Cross0875c522017-11-28 17:34:01 -080066 "android/singleton.go",
Colin Crosscec81712017-07-13 14:43:27 -070067 "android/testing.go",
Colin Cross635c3b02016-05-18 15:37:25 -070068 "android/util.go",
69 "android/variable.go",
Sasha Smundakff36da02019-02-12 17:12:08 -080070 "android/vts_config.go",
Colin Crosse87040b2017-12-11 15:52:26 -080071 "android/writedocs.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070072
73 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070074 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080075 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070076 testSrcs: [
Colin Crosscb988072019-01-24 14:58:11 -080077 "android/arch_test.go",
Jeff Gastonf5f6e492017-11-20 14:31:11 -080078 "android/config_test.go",
Colin Cross6bde0942016-11-04 14:36:38 -070079 "android/expand_test.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080080 "android/namespace_test.go",
Logan Chienee97c3e2018-03-12 16:34:26 +080081 "android/neverallow_test.go",
Colin Cross571cccf2019-02-04 11:22:08 -080082 "android/onceper_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070083 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070084 "android/prebuilt_test.go",
Jiyong Park139a2e62018-10-26 21:49:39 +090085 "android/prebuilt_etc_test.go",
Colin Crossfeec25b2019-01-30 17:32:39 -080086 "android/rule_builder_test.go",
Colin Crossb6715442017-10-24 11:13:31 -070087 "android/util_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070088 "android/variable_test.go",
Sasha Smundakff36da02019-02-12 17:12:08 -080089 "android/vts_config_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070090 ],
Colin Crossba442872015-03-14 14:26:32 -070091}
Colin Cross3f40fa42015-01-30 17:27:36 -080092
Colin Crossba442872015-03-14 14:26:32 -070093bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070094 name: "soong-cc-config",
95 pkgPath: "android/soong/cc/config",
96 deps: [
97 "soong-android",
98 ],
99 srcs: [
100 "cc/config/clang.go",
101 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700102 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700103 "cc/config/toolchain.go",
104
105 "cc/config/arm_device.go",
106 "cc/config/arm64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800107 "cc/config/arm64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700108 "cc/config/mips_device.go",
109 "cc/config/mips64_device.go",
110 "cc/config/x86_device.go",
111 "cc/config/x86_64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800112 "cc/config/x86_64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700113
114 "cc/config/x86_darwin_host.go",
115 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700116 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700117 "cc/config/x86_windows_host.go",
118 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700119 testSrcs: [
120 "cc/config/tidy_test.go",
121 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700122}
123
124bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700125 name: "soong-cc",
126 pkgPath: "android/soong/cc",
127 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800128 "blueprint",
129 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700130 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700131 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700132 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700133 "soong-genrule",
Colin Cross303e21f2018-08-07 16:49:25 -0700134 "soong-tradefed",
Colin Cross3f40fa42015-01-30 17:27:36 -0800135 ],
Colin Crossba442872015-03-14 14:26:32 -0700136 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700137 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800138 "cc/builder.go",
139 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700140 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800141 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700142 "cc/gen.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700143 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800144 "cc/makevars.go",
Pirama Arumuga Nainarada83ec2017-08-31 23:38:27 -0700145 "cc/pgo.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700146 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700147 "cc/proto.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700148 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800149 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800150 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800151 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700152 "cc/strip.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900153 "cc/sysprop.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700154 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800155 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900156 "cc/vndk.go",
Justin Yun71549282017-11-17 12:10:28 +0900157 "cc/vndk_prebuilt.go",
Ivan Lozano074ec482018-11-21 08:59:37 -0800158 "cc/xom.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800159
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800160 "cc/cmakelists.go",
Alex Lightec868fc2018-04-17 16:50:48 -0700161 "cc/compdb.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700162 "cc/compiler.go",
163 "cc/installer.go",
164 "cc/linker.go",
165
166 "cc/binary.go",
167 "cc/library.go",
168 "cc/object.go",
169 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700170 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700171
172 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700173 "cc/ndk_headers.go",
174 "cc/ndk_library.go",
175 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700176
177 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900178
179 "cc/kernel_headers.go",
Dan Willemsen3e5bdf22017-09-13 18:37:08 -0700180
181 "cc/genrule.go",
Jiyong Park374510b2018-03-19 18:23:01 +0900182
183 "cc/vendor_public_library.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900184
185 "cc/testing.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800186 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700187 testSrcs: [
188 "cc/cc_test.go",
Colin Crossf18e1102017-11-16 14:33:08 -0800189 "cc/gen_test.go",
Colin Crossef354482018-10-23 11:27:50 -0700190 "cc/genrule_test.go",
Colin Crossad59e752017-11-16 14:29:11 -0800191 "cc/library_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800192 "cc/test_data_test.go",
Logan Chien031d2b32018-07-26 00:19:50 +0800193 "cc/util_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700194 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700195 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700196}
Colin Cross3f40fa42015-01-30 17:27:36 -0800197
Colin Cross5049f022015-03-18 13:28:46 -0700198bootstrap_go_package {
199 name: "soong-genrule",
200 pkgPath: "android/soong/genrule",
201 deps: [
202 "blueprint",
203 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700204 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700205 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700206 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700207 ],
208 srcs: [
209 "genrule/genrule.go",
210 ],
Colin Cross2a076922018-10-04 23:28:25 -0700211 testSrcs: [
212 "genrule/genrule_test.go",
213 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700214 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700215}
Colin Cross2fe66872015-03-30 17:20:39 -0700216
Colin Cross2fe66872015-03-30 17:20:39 -0700217bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800218 name: "soong-phony",
219 pkgPath: "android/soong/phony",
220 deps: [
221 "blueprint",
222 "soong-android",
223 ],
224 srcs: [
225 "phony/phony.go",
226 ],
227 pluginFor: ["soong_build"],
228}
229
230bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700231 name: "soong-java",
232 pkgPath: "android/soong/java",
233 deps: [
234 "blueprint",
235 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700236 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700237 "soong-android",
Colin Crossa4f08812018-10-02 22:03:40 -0700238 "soong-cc",
Colin Cross43f08db2018-11-12 10:13:39 -0800239 "soong-dexpreopt",
Colin Cross0607cf72015-04-28 13:28:51 -0700240 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700241 "soong-java-config",
Colin Cross303e21f2018-08-07 16:49:25 -0700242 "soong-tradefed",
Colin Cross2fe66872015-03-30 17:20:39 -0700243 ],
244 srcs: [
Colin Cross3bc7ffa2017-11-22 16:19:37 -0800245 "java/aapt2.go",
Colin Crossfabb6082018-02-20 17:22:23 -0800246 "java/aar.go",
Colin Cross31656952018-05-24 16:11:20 -0700247 "java/android_manifest.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700248 "java/android_resources.go",
Dan Willemsen218f6562015-07-08 18:13:11 -0700249 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700250 "java/app_builder.go",
251 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700252 "java/builder.go",
Colin Crossf0056cb2017-12-22 15:56:08 -0800253 "java/dex.go",
Colin Cross43f08db2018-11-12 10:13:39 -0800254 "java/dexpreopt.go",
Colin Cross800fe132019-02-11 14:21:24 -0800255 "java/dexpreopt_bootjars.go",
Nan Zhang581fd212018-01-10 16:06:12 -0800256 "java/droiddoc.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700257 "java/gen.go",
Colin Cross54250902017-12-05 09:28:08 -0800258 "java/genrule.go",
Colin Cross8faf8fc2019-01-16 15:15:52 -0800259 "java/hiddenapi.go",
Colin Crossf24a22a2019-01-31 14:12:44 -0800260 "java/hiddenapi_singleton.go",
Colin Crosscb933592017-11-22 13:49:43 -0800261 "java/jacoco.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700262 "java/java.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700263 "java/jdeps.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700264 "java/java_resources.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800265 "java/kotlin.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800266 "java/plugin.go",
Jiyong Park58c518b2018-05-12 22:29:12 +0900267 "java/prebuilt_apis.go",
Colin Cross6af17aa2017-09-20 12:59:05 -0700268 "java/proto.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800269 "java/sdk.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +0900270 "java/sdk_library.go",
Colin Crossb2559a02018-04-19 15:26:10 -0700271 "java/support_libraries.go",
Colin Cross1369cdb2017-09-29 17:58:17 -0700272 "java/system_modules.go",
Colin Crosse4759b92019-02-15 10:37:39 -0800273 "java/testing.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700274 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700275 testSrcs: [
Colin Cross44f06682017-11-29 00:17:36 -0800276 "java/app_test.go",
Colin Cross638149e2019-01-05 22:12:12 -0800277 "java/dexpreopt_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700278 "java/java_test.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700279 "java/jdeps_test.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800280 "java/kotlin_test.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800281 "java/plugin_test.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800282 "java/sdk_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700283 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700284 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700285}
286
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800287bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700288 name: "soong-java-config",
289 pkgPath: "android/soong/java/config",
290 deps: [
291 "blueprint-proptools",
292 "soong-android",
293 ],
294 srcs: [
295 "java/config/config.go",
Colin Crossfee57cb2017-09-05 13:16:45 -0700296 "java/config/error_prone.go",
Colin Cross93e85952017-08-15 13:34:18 -0700297 "java/config/kotlin.go",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700298 "java/config/makevars.go",
299 ],
300}
301
302bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800303 name: "soong-python",
304 pkgPath: "android/soong/python",
305 deps: [
306 "blueprint",
307 "soong-android",
yelinhsieh80880a32018-11-06 11:49:55 +0800308 "soong-tradefed",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800309 ],
310 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700311 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800312 "python/binary.go",
313 "python/builder.go",
Nan Zhanga3fc4ba2017-07-20 17:43:37 -0700314 "python/defaults.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700315 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800316 "python/library.go",
Nan Zhangb8fa1972017-12-22 16:12:00 -0800317 "python/proto.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800318 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700319 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800320 ],
321 testSrcs: [
322 "python/python_test.go",
323 ],
324 pluginFor: ["soong_build"],
325}
326
Jeff Gastonefc1b412017-03-29 17:29:06 -0700327bootstrap_go_package {
328 name: "soong-shared",
329 pkgPath: "android/soong/shared",
330 srcs: [
331 "shared/paths.go",
332 ],
333}
334
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900335bootstrap_go_package {
Colin Cross303e21f2018-08-07 16:49:25 -0700336 name: "soong-tradefed",
337 pkgPath: "android/soong/tradefed",
338 deps: [
339 "blueprint",
340 "soong-android",
341 ],
342 srcs: [
343 "tradefed/autogen.go",
344 "tradefed/config.go",
345 "tradefed/makevars.go",
346 ],
347 pluginFor: ["soong_build"],
348}
349
350bootstrap_go_package {
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900351 name: "soong-xml",
352 pkgPath: "android/soong/xml",
353 deps: [
354 "blueprint",
355 "blueprint-pathtools",
356 "soong",
357 "soong-android",
358 ],
359 srcs: [
360 "xml/xml.go",
361 ],
362 testSrcs: [
363 "xml/xml_test.go",
364 ],
365 pluginFor: ["soong_build"],
366}
367
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900368bootstrap_go_package {
369 name: "soong-apex",
370 pkgPath: "android/soong/apex",
371 deps: [
372 "blueprint",
373 "soong",
374 "soong-android",
375 "soong-cc",
376 "soong-java",
377 ],
378 srcs: [
379 "apex/apex.go",
Jiyong Parkff1458f2018-10-12 21:49:38 +0900380 "apex/key.go",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900381 ],
Jiyong Park25fc6a92018-11-18 18:02:45 +0900382 testSrcs: [
383 "apex/apex_test.go",
384 ],
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900385 pluginFor: ["soong_build"],
386}
387
Inseob Kimc0907f12019-02-08 21:00:45 +0900388bootstrap_go_package {
389 name: "soong-sysprop",
390 pkgPath: "android/soong/sysprop",
391 deps: [
392 "blueprint",
393 "soong",
394 "soong-android",
395 "soong-cc",
396 "soong-java",
397 ],
398 srcs: [
399 "sysprop/sysprop_library.go",
400 ],
401 testSrcs: [
402 "sysprop/sysprop_test.go",
403 ],
404 pluginFor: ["soong_build"],
405}
406
Colin Cross80031312015-03-14 14:28:22 -0700407//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800408// Defaults to enable various configurations of host bionic
409//
410
411cc_defaults {
412 name: "linux_bionic_supported",
413 host_supported: true,
414 target: {
415 host: {
416 enabled: false,
417 },
418 linux_bionic: {
419 enabled: true,
420 },
421 },
422}
423
424//
Colin Cross80031312015-03-14 14:28:22 -0700425// C static libraries extracted from the gcc toolchain
426//
427
Colin Crossba442872015-03-14 14:26:32 -0700428toolchain_library {
429 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800430 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700431 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900432 recovery_available: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700433
Dan Willemseneba363e2015-07-08 18:11:14 -0700434 arch: {
435 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700436 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
437 },
438 arm64: {
439 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
440 },
441 x86: {
442 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
443 },
444 x86_64: {
445 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 -0700446 },
447 },
Colin Crossba442872015-03-14 14:26:32 -0700448}
Colin Cross3f40fa42015-01-30 17:27:36 -0800449
Colin Crossba442872015-03-14 14:26:32 -0700450toolchain_library {
451 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800452 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700453 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900454 recovery_available: true,
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/libgcc.a",
459 },
460 arm64: {
461 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.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/libgcc.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/libgcc.a",
Dan Willemseneba363e2015-07-08 18:11:14 -0700468 },
469 },
Colin Crossba442872015-03-14 14:26:32 -0700470}
Colin Cross3f40fa42015-01-30 17:27:36 -0800471
Colin Crossba442872015-03-14 14:26:32 -0700472toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800473 name: "libwinpthread",
474 host_supported: true,
475 enabled: false,
476 target: {
477 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700478 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800479 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700480 windows_x86: {
481 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
482 },
483 windows_x86_64: {
484 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
485 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800486 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800487 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800488}
489
490toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700491 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800492 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700493
Dan Willemseneba363e2015-07-08 18:11:14 -0700494 arch: {
495 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700496 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
497 },
498 arm64: {
499 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
500 },
501 x86: {
502 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
503 },
504 x86_64: {
505 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 -0700506 },
507 },
Colin Crossba442872015-03-14 14:26:32 -0700508}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900509
510kernel_headers {
511 name: "device_kernel_headers",
512 vendor: true,
513}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700514
515cc_genrule {
516 name: "host_bionic_linker_asm",
517 host_supported: true,
518 device_supported: false,
519 target: {
520 linux_bionic: {
521 enabled: true,
522 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700523 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700524 enabled: false,
525 },
526 darwin: {
527 enabled: false,
528 },
529 },
530 tools: ["extract_linker"],
531 cmd: "$(location) -s $(out) $(in)",
532 srcs: [":linker"],
533 out: ["linker.s"],
534}
535
536cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700537 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700538 host_supported: true,
539 device_supported: false,
540 target: {
541 linux_bionic: {
542 enabled: true,
543 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700544 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700545 enabled: false,
546 },
547 darwin: {
548 enabled: false,
549 },
550 },
551 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700552 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700553 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700554 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700555}