blob: 537b58b46197f9db159df1cc1c70c1d76df65aa2 [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",
Dan Willemsen633c5022019-04-12 11:11:38 -070040 "soong-shared",
Colin Cross3f40fa42015-01-30 17:27:36 -080041 ],
Colin Crossba442872015-03-14 14:26:32 -070042 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070043 "android/androidmk.go",
Jiyong Park9d452992018-10-03 00:38:19 +090044 "android/apex.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070045 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070046 "android/arch.go",
47 "android/config.go",
48 "android/defaults.go",
49 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070050 "android/expand.go",
Pirama Arumuga Nainar955dc492018-04-17 14:58:42 -070051 "android/filegroup.go",
Colin Cross178a5092016-09-13 13:42:32 -070052 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070053 "android/makevars.go",
54 "android/module.go",
55 "android/mutator.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080056 "android/namespace.go",
Steven Moreland65b3fd92017-12-06 14:18:35 -080057 "android/neverallow.go",
Jaewoong Jung5b425e22019-06-17 17:40:56 -070058 "android/notices.go",
Colin Cross9272ade2016-08-17 15:24:12 -070059 "android/onceper.go",
Jaewoong Jung525443a2019-02-28 15:35:54 -080060 "android/override_module.go",
Paul Duffine2453c72019-05-31 14:00:04 +010061 "android/package.go",
Colin Cross635c3b02016-05-18 15:37:25 -070062 "android/package_ctx.go",
Colin Cross1b488422019-03-04 22:33:56 -080063 "android/path_properties.go",
Colin Cross635c3b02016-05-18 15:37:25 -070064 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070065 "android/prebuilt.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +090066 "android/prebuilt_etc.go",
Colin Cross38f794e2017-09-07 10:53:07 -070067 "android/proto.go",
Colin Cross798bfce2016-10-12 14:28:16 -070068 "android/register.go",
Colin Crossfeec25b2019-01-30 17:32:39 -080069 "android/rule_builder.go",
Dan Willemsenb0552672019-01-25 16:04:11 -080070 "android/sh_binary.go",
Colin Cross0875c522017-11-28 17:34:01 -080071 "android/singleton.go",
Colin Crosscec81712017-07-13 14:43:27 -070072 "android/testing.go",
Colin Cross635c3b02016-05-18 15:37:25 -070073 "android/util.go",
74 "android/variable.go",
Paul Duffin2e61fa62019-03-28 14:10:57 +000075 "android/visibility.go",
Sasha Smundakff36da02019-02-12 17:12:08 -080076 "android/vts_config.go",
Colin Crosse87040b2017-12-11 15:52:26 -080077 "android/writedocs.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070078
79 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070080 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080081 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070082 testSrcs: [
Colin Cross2ffb9a82019-06-10 14:32:38 -070083 "android/android_test.go",
Jooyung Han12df5fb2019-07-11 16:18:47 +090084 "android/androidmk_test.go",
Colin Crosscb988072019-01-24 14:58:11 -080085 "android/arch_test.go",
Jeff Gastonf5f6e492017-11-20 14:31:11 -080086 "android/config_test.go",
Colin Cross6bde0942016-11-04 14:36:38 -070087 "android/expand_test.go",
Colin Cross41955e82019-05-29 14:40:35 -070088 "android/module_test.go",
Colin Crossdc35e212019-06-06 16:13:11 -070089 "android/mutator_test.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080090 "android/namespace_test.go",
Logan Chienee97c3e2018-03-12 16:34:26 +080091 "android/neverallow_test.go",
Colin Cross571cccf2019-02-04 11:22:08 -080092 "android/onceper_test.go",
Paul Duffine2453c72019-05-31 14:00:04 +010093 "android/package_test.go",
Colin Cross1b488422019-03-04 22:33:56 -080094 "android/path_properties_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070095 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070096 "android/prebuilt_test.go",
Jiyong Park139a2e62018-10-26 21:49:39 +090097 "android/prebuilt_etc_test.go",
Colin Crossfeec25b2019-01-30 17:32:39 -080098 "android/rule_builder_test.go",
Colin Crossb6715442017-10-24 11:13:31 -070099 "android/util_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -0700100 "android/variable_test.go",
Paul Duffin2e61fa62019-03-28 14:10:57 +0000101 "android/visibility_test.go",
Sasha Smundakff36da02019-02-12 17:12:08 -0800102 "android/vts_config_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -0700103 ],
Colin Crossba442872015-03-14 14:26:32 -0700104}
Colin Cross3f40fa42015-01-30 17:27:36 -0800105
Colin Crossba442872015-03-14 14:26:32 -0700106bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -0700107 name: "soong-cc-config",
108 pkgPath: "android/soong/cc/config",
109 deps: [
110 "soong-android",
111 ],
112 srcs: [
113 "cc/config/clang.go",
114 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700115 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700116 "cc/config/toolchain.go",
Vic Yangefd249e2018-11-12 20:19:56 -0800117 "cc/config/vndk.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700118
119 "cc/config/arm_device.go",
120 "cc/config/arm64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800121 "cc/config/arm64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700122 "cc/config/mips_device.go",
123 "cc/config/mips64_device.go",
124 "cc/config/x86_device.go",
125 "cc/config/x86_64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800126 "cc/config/x86_64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700127
128 "cc/config/x86_darwin_host.go",
129 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700130 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700131 "cc/config/x86_windows_host.go",
132 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700133 testSrcs: [
134 "cc/config/tidy_test.go",
135 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700136}
137
138bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700139 name: "soong-cc",
140 pkgPath: "android/soong/cc",
141 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800142 "blueprint",
143 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700144 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700145 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700146 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700147 "soong-genrule",
Colin Cross303e21f2018-08-07 16:49:25 -0700148 "soong-tradefed",
Colin Cross3f40fa42015-01-30 17:27:36 -0800149 ],
Colin Crossba442872015-03-14 14:26:32 -0700150 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700151 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800152 "cc/builder.go",
153 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700154 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800155 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700156 "cc/gen.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700157 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800158 "cc/makevars.go",
Pirama Arumuga Nainarada83ec2017-08-31 23:38:27 -0700159 "cc/pgo.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700160 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700161 "cc/proto.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700162 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800163 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800164 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800165 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700166 "cc/strip.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900167 "cc/sysprop.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700168 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800169 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900170 "cc/vndk.go",
Justin Yun71549282017-11-17 12:10:28 +0900171 "cc/vndk_prebuilt.go",
Ivan Lozano074ec482018-11-21 08:59:37 -0800172 "cc/xom.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800173
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800174 "cc/cmakelists.go",
Alex Lightec868fc2018-04-17 16:50:48 -0700175 "cc/compdb.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700176 "cc/compiler.go",
177 "cc/installer.go",
178 "cc/linker.go",
179
180 "cc/binary.go",
Mitch Phillipsda9a4632019-07-15 09:34:09 -0700181 "cc/fuzz.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700182 "cc/library.go",
183 "cc/object.go",
184 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700185 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700186
187 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700188 "cc/ndk_headers.go",
189 "cc/ndk_library.go",
190 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700191
192 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900193
194 "cc/kernel_headers.go",
Dan Willemsen3e5bdf22017-09-13 18:37:08 -0700195
196 "cc/genrule.go",
Jiyong Park374510b2018-03-19 18:23:01 +0900197
198 "cc/vendor_public_library.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900199
200 "cc/testing.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800201 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700202 testSrcs: [
203 "cc/cc_test.go",
Colin Crossf18e1102017-11-16 14:33:08 -0800204 "cc/gen_test.go",
Colin Crossef354482018-10-23 11:27:50 -0700205 "cc/genrule_test.go",
Colin Crossad59e752017-11-16 14:29:11 -0800206 "cc/library_test.go",
Pete Bentley74c9bba2019-08-16 20:25:06 +0100207 "cc/object_test.go",
Colin Cross33b2fb72019-05-14 14:07:01 -0700208 "cc/prebuilt_test.go",
Colin Cross19878da2019-03-28 14:45:07 -0700209 "cc/proto_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800210 "cc/test_data_test.go",
Logan Chien031d2b32018-07-26 00:19:50 +0800211 "cc/util_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700212 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700213 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700214}
Colin Cross3f40fa42015-01-30 17:27:36 -0800215
Colin Cross5049f022015-03-18 13:28:46 -0700216bootstrap_go_package {
217 name: "soong-genrule",
218 pkgPath: "android/soong/genrule",
219 deps: [
220 "blueprint",
221 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700222 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700223 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700224 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700225 ],
226 srcs: [
227 "genrule/genrule.go",
228 ],
Colin Cross2a076922018-10-04 23:28:25 -0700229 testSrcs: [
230 "genrule/genrule_test.go",
231 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700232 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700233}
Colin Cross2fe66872015-03-30 17:20:39 -0700234
Colin Cross2fe66872015-03-30 17:20:39 -0700235bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800236 name: "soong-phony",
237 pkgPath: "android/soong/phony",
238 deps: [
239 "blueprint",
240 "soong-android",
241 ],
242 srcs: [
243 "phony/phony.go",
244 ],
245 pluginFor: ["soong_build"],
246}
247
248bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700249 name: "soong-java",
250 pkgPath: "android/soong/java",
251 deps: [
252 "blueprint",
253 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700254 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700255 "soong-android",
Colin Crossa4f08812018-10-02 22:03:40 -0700256 "soong-cc",
Colin Cross43f08db2018-11-12 10:13:39 -0800257 "soong-dexpreopt",
Colin Cross0607cf72015-04-28 13:28:51 -0700258 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700259 "soong-java-config",
Colin Cross303e21f2018-08-07 16:49:25 -0700260 "soong-tradefed",
Colin Cross2fe66872015-03-30 17:20:39 -0700261 ],
262 srcs: [
Colin Cross3bc7ffa2017-11-22 16:19:37 -0800263 "java/aapt2.go",
Colin Crossfabb6082018-02-20 17:22:23 -0800264 "java/aar.go",
Colin Cross31656952018-05-24 16:11:20 -0700265 "java/android_manifest.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700266 "java/android_resources.go",
Dan Willemsen218f6562015-07-08 18:13:11 -0700267 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700268 "java/app_builder.go",
269 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700270 "java/builder.go",
Colin Cross3d7c9822019-03-01 13:46:24 -0800271 "java/device_host_converter.go",
Colin Crossf0056cb2017-12-22 15:56:08 -0800272 "java/dex.go",
Colin Cross43f08db2018-11-12 10:13:39 -0800273 "java/dexpreopt.go",
Colin Cross800fe132019-02-11 14:21:24 -0800274 "java/dexpreopt_bootjars.go",
Colin Cross44df5812019-02-15 23:06:46 -0800275 "java/dexpreopt_config.go",
Nan Zhang581fd212018-01-10 16:06:12 -0800276 "java/droiddoc.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700277 "java/gen.go",
Colin Cross54250902017-12-05 09:28:08 -0800278 "java/genrule.go",
Colin Cross8faf8fc2019-01-16 15:15:52 -0800279 "java/hiddenapi.go",
Colin Crossf24a22a2019-01-31 14:12:44 -0800280 "java/hiddenapi_singleton.go",
Colin Crosscb933592017-11-22 13:49:43 -0800281 "java/jacoco.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700282 "java/java.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700283 "java/jdeps.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700284 "java/java_resources.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800285 "java/kotlin.go",
atrostdb25ac02019-08-05 12:26:07 +0100286 "java/platform_compat_config.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800287 "java/plugin.go",
Jiyong Park58c518b2018-05-12 22:29:12 +0900288 "java/prebuilt_apis.go",
Colin Cross6af17aa2017-09-20 12:59:05 -0700289 "java/proto.go",
Colin Cross0ef08162019-05-01 15:50:51 -0700290 "java/robolectric.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800291 "java/sdk.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +0900292 "java/sdk_library.go",
Colin Crossb2559a02018-04-19 15:26:10 -0700293 "java/support_libraries.go",
Colin Cross1369cdb2017-09-29 17:58:17 -0700294 "java/system_modules.go",
Colin Crosse4759b92019-02-15 10:37:39 -0800295 "java/testing.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700296 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700297 testSrcs: [
Jooyung Han12df5fb2019-07-11 16:18:47 +0900298 "java/androidmk_test.go",
Colin Cross44f06682017-11-29 00:17:36 -0800299 "java/app_test.go",
Colin Cross3d7c9822019-03-01 13:46:24 -0800300 "java/device_host_converter_test.go",
Colin Cross638149e2019-01-05 22:12:12 -0800301 "java/dexpreopt_test.go",
Colin Cross76228672019-02-25 16:40:34 -0800302 "java/dexpreopt_bootjars_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700303 "java/java_test.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700304 "java/jdeps_test.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800305 "java/kotlin_test.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800306 "java/plugin_test.go",
Colin Cross9a642dc2019-05-30 11:17:23 -0700307 "java/robolectric_test.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800308 "java/sdk_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700309 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700310 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700311}
312
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800313bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700314 name: "soong-java-config",
315 pkgPath: "android/soong/java/config",
316 deps: [
317 "blueprint-proptools",
318 "soong-android",
319 ],
320 srcs: [
321 "java/config/config.go",
Colin Crossfee57cb2017-09-05 13:16:45 -0700322 "java/config/error_prone.go",
Colin Cross93e85952017-08-15 13:34:18 -0700323 "java/config/kotlin.go",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700324 "java/config/makevars.go",
325 ],
326}
327
328bootstrap_go_package {
Ivan Lozanoffee3342019-08-27 12:03:00 -0700329 name: "soong-rust-config",
330 pkgPath: "android/soong/rust/config",
331 deps: [
332 "soong-android",
333 "soong-cc-config",
334 ],
335 srcs: [
336 "rust/config/global.go",
337 "rust/config/toolchain.go",
338 "rust/config/x86_linux_host.go",
339 "rust/config/x86_64_device.go",
340 ],
341}
342
343bootstrap_go_package {
344 name: "soong-rust",
345 pkgPath: "android/soong/rust",
346 deps: [
347 "soong",
348 "soong-android",
349 "soong-cc",
350 "soong-rust-config",
351 ],
352 srcs: [
353 "rust/androidmk.go",
354 "rust/compiler.go",
355 "rust/binary.go",
356 "rust/builder.go",
357 "rust/library.go",
358 "rust/prebuilt.go",
359 "rust/proc_macro.go",
360 "rust/rust.go",
361 "rust/testing.go",
362 ],
363 testSrcs: [
364 "rust/binary_test.go",
365 "rust/compiler_test.go",
366 "rust/library_test.go",
367 "rust/rust_test.go",
368 ],
369 pluginFor: ["soong_build"],
370}
371
372bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800373 name: "soong-python",
374 pkgPath: "android/soong/python",
375 deps: [
376 "blueprint",
377 "soong-android",
yelinhsieh80880a32018-11-06 11:49:55 +0800378 "soong-tradefed",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800379 ],
380 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700381 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800382 "python/binary.go",
383 "python/builder.go",
Nan Zhanga3fc4ba2017-07-20 17:43:37 -0700384 "python/defaults.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700385 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800386 "python/library.go",
Nan Zhangb8fa1972017-12-22 16:12:00 -0800387 "python/proto.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800388 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700389 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800390 ],
391 testSrcs: [
392 "python/python_test.go",
393 ],
394 pluginFor: ["soong_build"],
395}
396
Jeff Gastonefc1b412017-03-29 17:29:06 -0700397bootstrap_go_package {
398 name: "soong-shared",
399 pkgPath: "android/soong/shared",
400 srcs: [
401 "shared/paths.go",
402 ],
403}
404
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900405bootstrap_go_package {
Colin Cross303e21f2018-08-07 16:49:25 -0700406 name: "soong-tradefed",
407 pkgPath: "android/soong/tradefed",
408 deps: [
409 "blueprint",
410 "soong-android",
411 ],
412 srcs: [
413 "tradefed/autogen.go",
414 "tradefed/config.go",
415 "tradefed/makevars.go",
416 ],
417 pluginFor: ["soong_build"],
418}
419
420bootstrap_go_package {
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900421 name: "soong-xml",
422 pkgPath: "android/soong/xml",
423 deps: [
424 "blueprint",
425 "blueprint-pathtools",
426 "soong",
427 "soong-android",
428 ],
429 srcs: [
430 "xml/xml.go",
431 ],
432 testSrcs: [
433 "xml/xml_test.go",
434 ],
435 pluginFor: ["soong_build"],
436}
437
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900438bootstrap_go_package {
439 name: "soong-apex",
440 pkgPath: "android/soong/apex",
441 deps: [
442 "blueprint",
443 "soong",
444 "soong-android",
445 "soong-cc",
446 "soong-java",
Alex Light778127a2019-02-27 14:19:50 -0800447 "soong-python",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900448 ],
449 srcs: [
450 "apex/apex.go",
Jiyong Parkff1458f2018-10-12 21:49:38 +0900451 "apex/key.go",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900452 ],
Jiyong Park25fc6a92018-11-18 18:02:45 +0900453 testSrcs: [
454 "apex/apex_test.go",
455 ],
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900456 pluginFor: ["soong_build"],
457}
458
Inseob Kimc0907f12019-02-08 21:00:45 +0900459bootstrap_go_package {
460 name: "soong-sysprop",
461 pkgPath: "android/soong/sysprop",
462 deps: [
463 "blueprint",
464 "soong",
465 "soong-android",
466 "soong-cc",
467 "soong-java",
468 ],
469 srcs: [
470 "sysprop/sysprop_library.go",
471 ],
472 testSrcs: [
473 "sysprop/sysprop_test.go",
474 ],
475 pluginFor: ["soong_build"],
476}
477
Colin Cross80031312015-03-14 14:28:22 -0700478//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800479// Defaults to enable various configurations of host bionic
480//
481
482cc_defaults {
483 name: "linux_bionic_supported",
484 host_supported: true,
485 target: {
486 host: {
487 enabled: false,
488 },
489 linux_bionic: {
490 enabled: true,
491 },
492 },
493}
494
495//
Colin Cross80031312015-03-14 14:28:22 -0700496// C static libraries extracted from the gcc toolchain
497//
498
Colin Crossba442872015-03-14 14:26:32 -0700499toolchain_library {
500 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800501 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700502 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900503 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +0100504 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700505
Dan Willemseneba363e2015-07-08 18:11:14 -0700506 arch: {
507 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700508 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
509 },
510 arm64: {
511 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
512 },
513 x86: {
514 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
515 },
516 x86_64: {
517 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 -0700518 },
519 },
Colin Crossba442872015-03-14 14:26:32 -0700520}
Colin Cross3f40fa42015-01-30 17:27:36 -0800521
Colin Crossba442872015-03-14 14:26:32 -0700522toolchain_library {
523 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800524 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700525 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900526 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +0100527 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700528
Dan Willemseneba363e2015-07-08 18:11:14 -0700529 arch: {
530 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700531 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
532 },
533 arm64: {
534 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
535 },
536 x86: {
537 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
538 },
539 x86_64: {
540 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 -0700541 },
542 },
Colin Crossba442872015-03-14 14:26:32 -0700543}
Colin Cross3f40fa42015-01-30 17:27:36 -0800544
Colin Crossba442872015-03-14 14:26:32 -0700545toolchain_library {
Yi Kongacee27c2019-03-29 20:05:14 -0700546 name: "libgcc_stripped",
547 defaults: ["linux_bionic_supported"],
548 vendor_available: true,
549 recovery_available: true,
dimitry0e55ba62019-05-06 10:58:10 +0200550 native_bridge_supported: true,
Yi Kongacee27c2019-03-29 20:05:14 -0700551
552 arch: {
553 arm: {
554 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
555 strip: {
556 keep_symbols_list: [
557 // unwind-arm.o
558 "_Unwind_Complete",
559 "_Unwind_DeleteException",
560 "_Unwind_GetCFA",
561 "_Unwind_VRS_Get",
562 "_Unwind_VRS_Pop",
563 "_Unwind_VRS_Set",
564 "__aeabi_unwind_cpp_pr0",
565 "__aeabi_unwind_cpp_pr1",
566 "__aeabi_unwind_cpp_pr2",
567 "__gnu_Unwind_Backtrace",
568 "__gnu_Unwind_ForcedUnwind",
569 "__gnu_Unwind_RaiseException",
570 "__gnu_Unwind_Resume",
571 "__gnu_Unwind_Resume_or_Rethrow",
572
573 // libunwind.o
574 "_Unwind_Backtrace",
575 "_Unwind_ForcedUnwind",
576 "_Unwind_RaiseException",
577 "_Unwind_Resume",
578 "_Unwind_Resume_or_Rethrow",
579 "___Unwind_Backtrace",
580 "___Unwind_ForcedUnwind",
581 "___Unwind_RaiseException",
582 "___Unwind_Resume",
583 "___Unwind_Resume_or_Rethrow",
584 "__gnu_Unwind_Restore_VFP",
585 "__gnu_Unwind_Restore_VFP_D",
586 "__gnu_Unwind_Restore_VFP_D_16_to_31",
587 "__gnu_Unwind_Restore_WMMXC",
588 "__gnu_Unwind_Restore_WMMXD",
589 "__gnu_Unwind_Save_VFP",
590 "__gnu_Unwind_Save_VFP_D",
591 "__gnu_Unwind_Save_VFP_D_16_to_31",
592 "__gnu_Unwind_Save_WMMXC",
593 "__gnu_Unwind_Save_WMMXD",
594 "__restore_core_regs",
595 "restore_core_regs",
596
597 // pr-support.o
598 "_Unwind_GetDataRelBase",
599 "_Unwind_GetLanguageSpecificData",
600 "_Unwind_GetRegionStart",
601 "_Unwind_GetTextRelBase",
602 "__gnu_unwind_execute",
603 "__gnu_unwind_frame",
604 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700605 },
606 },
607 arm64: {
608 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
609 },
610 x86: {
611 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
612
613 },
614 x86_64: {
615 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a",
616 },
617 },
618 strip: {
619 keep_symbols_list: [
620 // unwind-dw2.o
621 "_Unwind_Backtrace",
622 "_Unwind_DeleteException",
623 "_Unwind_FindEnclosingFunction",
624 "_Unwind_ForcedUnwind",
625 "_Unwind_GetCFA",
626 "_Unwind_GetDataRelBase",
627 "_Unwind_GetGR",
628 "_Unwind_GetIP",
629 "_Unwind_GetIPInfo",
630 "_Unwind_GetLanguageSpecificData",
631 "_Unwind_GetRegionStart",
632 "_Unwind_GetTextRelBase",
633 "_Unwind_RaiseException",
634 "_Unwind_Resume",
635 "_Unwind_Resume_or_Rethrow",
636 "_Unwind_SetGR",
637 "_Unwind_SetIP",
638 "__frame_state_for",
639
640 // unwind-dw2-fde-dip.o
641 "_Unwind_Find_FDE",
642 "__deregister_frame",
643 "__deregister_frame_info",
644 "__deregister_frame_info_bases",
645 "__register_frame",
646 "__register_frame_info",
647 "__register_frame_info_bases",
648 "__register_frame_info_table",
649 "__register_frame_info_table_bases",
650 "__register_frame_table",
651 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700652 },
653}
654
655toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800656 name: "libwinpthread",
657 host_supported: true,
658 enabled: false,
659 target: {
660 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700661 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800662 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700663 windows_x86: {
664 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
665 },
666 windows_x86_64: {
667 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
668 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800669 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800670 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800671}
672
673toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700674 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800675 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700676
Dan Willemseneba363e2015-07-08 18:11:14 -0700677 arch: {
678 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700679 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
680 },
681 arm64: {
682 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
683 },
684 x86: {
685 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
686 },
687 x86_64: {
688 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 -0700689 },
690 },
Colin Crossba442872015-03-14 14:26:32 -0700691}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900692
693kernel_headers {
694 name: "device_kernel_headers",
695 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -0700696 recovery_available: true,
Jiyong Parkd773eb32017-07-03 13:18:12 +0900697}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700698
699cc_genrule {
700 name: "host_bionic_linker_asm",
701 host_supported: true,
702 device_supported: false,
703 target: {
704 linux_bionic: {
705 enabled: true,
706 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700707 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700708 enabled: false,
709 },
710 darwin: {
711 enabled: false,
712 },
713 },
714 tools: ["extract_linker"],
715 cmd: "$(location) -s $(out) $(in)",
716 srcs: [":linker"],
717 out: ["linker.s"],
718}
719
720cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700721 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700722 host_supported: true,
723 device_supported: false,
724 target: {
725 linux_bionic: {
726 enabled: true,
727 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700728 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700729 enabled: false,
730 },
731 darwin: {
732 enabled: false,
733 },
734 },
735 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700736 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700737 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700738 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700739}