blob: 9b55c8c7715213b35f2f958d5a4cc03007c81668 [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 Cross9d34f352019-11-22 16:03:51 -080039 "soong-android-soongconfig",
Colin Cross68f55102015-03-25 14:43:57 -070040 "soong-env",
Dan Willemsen633c5022019-04-12 11:11:38 -070041 "soong-shared",
Colin Cross3f40fa42015-01-30 17:27:36 -080042 ],
Colin Crossba442872015-03-14 14:26:32 -070043 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070044 "android/androidmk.go",
Jiyong Park9d452992018-10-03 00:38:19 +090045 "android/apex.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070046 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070047 "android/arch.go",
48 "android/config.go",
karenluoc0318192019-10-10 21:26:26 -040049 "android/csuite_config.go",
Colin Cross635c3b02016-05-18 15:37:25 -070050 "android/defaults.go",
51 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070052 "android/expand.go",
Pirama Arumuga Nainar955dc492018-04-17 14:58:42 -070053 "android/filegroup.go",
Colin Cross178a5092016-09-13 13:42:32 -070054 "android/hooks.go",
Colin Cross7228ecd2019-11-18 16:00:16 -080055 "android/image.go",
Colin Cross635c3b02016-05-18 15:37:25 -070056 "android/makevars.go",
57 "android/module.go",
58 "android/mutator.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080059 "android/namespace.go",
Steven Moreland65b3fd92017-12-06 14:18:35 -080060 "android/neverallow.go",
Jaewoong Jung5b425e22019-06-17 17:40:56 -070061 "android/notices.go",
Colin Cross9272ade2016-08-17 15:24:12 -070062 "android/onceper.go",
Jaewoong Jung525443a2019-02-28 15:35:54 -080063 "android/override_module.go",
Paul Duffine2453c72019-05-31 14:00:04 +010064 "android/package.go",
Colin Cross635c3b02016-05-18 15:37:25 -070065 "android/package_ctx.go",
Colin Cross1b488422019-03-04 22:33:56 -080066 "android/path_properties.go",
Colin Cross635c3b02016-05-18 15:37:25 -070067 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070068 "android/prebuilt.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +090069 "android/prebuilt_etc.go",
Colin Cross38f794e2017-09-07 10:53:07 -070070 "android/proto.go",
Colin Cross798bfce2016-10-12 14:28:16 -070071 "android/register.go",
Colin Crossfeec25b2019-01-30 17:32:39 -080072 "android/rule_builder.go",
Colin Cross988414c2020-01-11 01:11:46 +000073 "android/sandbox.go",
Jiyong Parkd1063c12019-07-17 20:08:41 +090074 "android/sdk.go",
Dan Willemsenb0552672019-01-25 16:04:11 -080075 "android/sh_binary.go",
Colin Cross0875c522017-11-28 17:34:01 -080076 "android/singleton.go",
Colin Cross9d34f352019-11-22 16:03:51 -080077 "android/soong_config_modules.go",
Colin Crosscec81712017-07-13 14:43:27 -070078 "android/testing.go",
Colin Cross635c3b02016-05-18 15:37:25 -070079 "android/util.go",
80 "android/variable.go",
Paul Duffin2e61fa62019-03-28 14:10:57 +000081 "android/visibility.go",
Sasha Smundakff36da02019-02-12 17:12:08 -080082 "android/vts_config.go",
Colin Crosse87040b2017-12-11 15:52:26 -080083 "android/writedocs.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070084
85 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070086 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080087 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070088 testSrcs: [
Colin Cross2ffb9a82019-06-10 14:32:38 -070089 "android/android_test.go",
Jooyung Han12df5fb2019-07-11 16:18:47 +090090 "android/androidmk_test.go",
Colin Crosscb988072019-01-24 14:58:11 -080091 "android/arch_test.go",
Jeff Gastonf5f6e492017-11-20 14:31:11 -080092 "android/config_test.go",
karenluoc0318192019-10-10 21:26:26 -040093 "android/csuite_config_test.go",
Colin Cross6bde0942016-11-04 14:36:38 -070094 "android/expand_test.go",
Colin Cross41955e82019-05-29 14:40:35 -070095 "android/module_test.go",
Colin Crossdc35e212019-06-06 16:13:11 -070096 "android/mutator_test.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080097 "android/namespace_test.go",
Logan Chienee97c3e2018-03-12 16:34:26 +080098 "android/neverallow_test.go",
Colin Cross571cccf2019-02-04 11:22:08 -080099 "android/onceper_test.go",
Paul Duffine2453c72019-05-31 14:00:04 +0100100 "android/package_test.go",
Colin Cross1b488422019-03-04 22:33:56 -0800101 "android/path_properties_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -0700102 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -0700103 "android/prebuilt_test.go",
Jiyong Park139a2e62018-10-26 21:49:39 +0900104 "android/prebuilt_etc_test.go",
Colin Crossfeec25b2019-01-30 17:32:39 -0800105 "android/rule_builder_test.go",
Colin Cross9d34f352019-11-22 16:03:51 -0800106 "android/soong_config_modules_test.go",
Colin Crossb6715442017-10-24 11:13:31 -0700107 "android/util_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -0700108 "android/variable_test.go",
Paul Duffin2e61fa62019-03-28 14:10:57 +0000109 "android/visibility_test.go",
Sasha Smundakff36da02019-02-12 17:12:08 -0800110 "android/vts_config_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -0700111 ],
Colin Crossba442872015-03-14 14:26:32 -0700112}
Colin Cross3f40fa42015-01-30 17:27:36 -0800113
Colin Crossba442872015-03-14 14:26:32 -0700114bootstrap_go_package {
Colin Cross9d34f352019-11-22 16:03:51 -0800115 name: "soong-android-soongconfig",
116 pkgPath: "android/soong/android/soongconfig",
117 deps: [
118 "blueprint",
119 "blueprint-parser",
120 "blueprint-proptools",
121 ],
122 srcs: [
123 "android/soongconfig/config.go",
124 "android/soongconfig/modules.go",
125 ],
126}
127
128bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -0700129 name: "soong-cc-config",
130 pkgPath: "android/soong/cc/config",
131 deps: [
132 "soong-android",
133 ],
134 srcs: [
135 "cc/config/clang.go",
136 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700137 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700138 "cc/config/toolchain.go",
Vic Yangefd249e2018-11-12 20:19:56 -0800139 "cc/config/vndk.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700140
141 "cc/config/arm_device.go",
142 "cc/config/arm64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800143 "cc/config/arm64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700144 "cc/config/mips_device.go",
145 "cc/config/mips64_device.go",
146 "cc/config/x86_device.go",
147 "cc/config/x86_64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800148 "cc/config/x86_64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700149
150 "cc/config/x86_darwin_host.go",
151 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700152 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700153 "cc/config/x86_windows_host.go",
154 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700155 testSrcs: [
156 "cc/config/tidy_test.go",
157 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700158}
159
160bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700161 name: "soong-cc",
162 pkgPath: "android/soong/cc",
163 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800164 "blueprint",
165 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700166 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700167 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700168 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700169 "soong-genrule",
Colin Cross303e21f2018-08-07 16:49:25 -0700170 "soong-tradefed",
Colin Cross3f40fa42015-01-30 17:27:36 -0800171 ],
Colin Crossba442872015-03-14 14:26:32 -0700172 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700173 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800174 "cc/builder.go",
175 "cc/cc.go",
bralee5a5cce62019-10-22 13:39:18 +0800176 "cc/ccdeps.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700177 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800178 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700179 "cc/gen.go",
Ivan Lozano183a3212019-10-18 14:18:45 -0700180 "cc/linkable.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700181 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800182 "cc/makevars.go",
Pirama Arumuga Nainarada83ec2017-08-31 23:38:27 -0700183 "cc/pgo.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700184 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700185 "cc/proto.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700186 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800187 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800188 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800189 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700190 "cc/strip.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900191 "cc/sysprop.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700192 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800193 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900194 "cc/vndk.go",
Justin Yun71549282017-11-17 12:10:28 +0900195 "cc/vndk_prebuilt.go",
Ivan Lozano074ec482018-11-21 08:59:37 -0800196 "cc/xom.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800197
Jesse Pai4d336662019-09-13 17:08:52 -0700198 "cc/cflag_artifacts.go",
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800199 "cc/cmakelists.go",
Alex Lightec868fc2018-04-17 16:50:48 -0700200 "cc/compdb.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700201 "cc/compiler.go",
202 "cc/installer.go",
203 "cc/linker.go",
204
205 "cc/binary.go",
Mitch Phillipsda9a4632019-07-15 09:34:09 -0700206 "cc/fuzz.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700207 "cc/library.go",
Paul Duffin2f6bc092019-12-13 10:40:56 +0000208 "cc/library_sdk_member.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700209 "cc/object.go",
210 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700211 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700212
213 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700214 "cc/ndk_headers.go",
215 "cc/ndk_library.go",
216 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700217
218 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900219
220 "cc/kernel_headers.go",
Dan Willemsen3e5bdf22017-09-13 18:37:08 -0700221
222 "cc/genrule.go",
Jiyong Park374510b2018-03-19 18:23:01 +0900223
224 "cc/vendor_public_library.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900225
226 "cc/testing.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800227 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700228 testSrcs: [
229 "cc/cc_test.go",
Yi Kong950e0ba2019-10-08 02:27:17 -0700230 "cc/compiler_test.go",
Colin Crossf18e1102017-11-16 14:33:08 -0800231 "cc/gen_test.go",
Colin Crossef354482018-10-23 11:27:50 -0700232 "cc/genrule_test.go",
Colin Crossad59e752017-11-16 14:29:11 -0800233 "cc/library_test.go",
Pete Bentley74c9bba2019-08-16 20:25:06 +0100234 "cc/object_test.go",
Colin Cross33b2fb72019-05-14 14:07:01 -0700235 "cc/prebuilt_test.go",
Colin Cross19878da2019-03-28 14:45:07 -0700236 "cc/proto_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800237 "cc/test_data_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700238 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700239 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700240}
Colin Cross3f40fa42015-01-30 17:27:36 -0800241
Colin Cross5049f022015-03-18 13:28:46 -0700242bootstrap_go_package {
243 name: "soong-genrule",
244 pkgPath: "android/soong/genrule",
245 deps: [
246 "blueprint",
247 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700248 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700249 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700250 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700251 ],
252 srcs: [
253 "genrule/genrule.go",
254 ],
Colin Cross2a076922018-10-04 23:28:25 -0700255 testSrcs: [
256 "genrule/genrule_test.go",
257 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700258 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700259}
Colin Cross2fe66872015-03-30 17:20:39 -0700260
Colin Cross2fe66872015-03-30 17:20:39 -0700261bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800262 name: "soong-phony",
263 pkgPath: "android/soong/phony",
264 deps: [
265 "blueprint",
266 "soong-android",
267 ],
268 srcs: [
269 "phony/phony.go",
270 ],
271 pluginFor: ["soong_build"],
272}
273
274bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700275 name: "soong-java",
276 pkgPath: "android/soong/java",
277 deps: [
278 "blueprint",
279 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700280 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700281 "soong-android",
Colin Crossa4f08812018-10-02 22:03:40 -0700282 "soong-cc",
Colin Cross43f08db2018-11-12 10:13:39 -0800283 "soong-dexpreopt",
Colin Cross0607cf72015-04-28 13:28:51 -0700284 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700285 "soong-java-config",
Colin Cross303e21f2018-08-07 16:49:25 -0700286 "soong-tradefed",
Colin Cross2fe66872015-03-30 17:20:39 -0700287 ],
288 srcs: [
Colin Cross3bc7ffa2017-11-22 16:19:37 -0800289 "java/aapt2.go",
Colin Crossfabb6082018-02-20 17:22:23 -0800290 "java/aar.go",
Colin Cross31656952018-05-24 16:11:20 -0700291 "java/android_manifest.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700292 "java/android_resources.go",
Dan Willemsen218f6562015-07-08 18:13:11 -0700293 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700294 "java/app_builder.go",
295 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700296 "java/builder.go",
Colin Cross3d7c9822019-03-01 13:46:24 -0800297 "java/device_host_converter.go",
Colin Crossf0056cb2017-12-22 15:56:08 -0800298 "java/dex.go",
Colin Cross43f08db2018-11-12 10:13:39 -0800299 "java/dexpreopt.go",
Colin Cross800fe132019-02-11 14:21:24 -0800300 "java/dexpreopt_bootjars.go",
Colin Cross44df5812019-02-15 23:06:46 -0800301 "java/dexpreopt_config.go",
Nan Zhang581fd212018-01-10 16:06:12 -0800302 "java/droiddoc.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700303 "java/gen.go",
Colin Cross54250902017-12-05 09:28:08 -0800304 "java/genrule.go",
Colin Cross8faf8fc2019-01-16 15:15:52 -0800305 "java/hiddenapi.go",
Colin Crossf24a22a2019-01-31 14:12:44 -0800306 "java/hiddenapi_singleton.go",
Colin Crosscb933592017-11-22 13:49:43 -0800307 "java/jacoco.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700308 "java/java.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700309 "java/jdeps.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700310 "java/java_resources.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800311 "java/kotlin.go",
atrostdb25ac02019-08-05 12:26:07 +0100312 "java/platform_compat_config.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800313 "java/plugin.go",
Jiyong Park58c518b2018-05-12 22:29:12 +0900314 "java/prebuilt_apis.go",
Colin Cross6af17aa2017-09-20 12:59:05 -0700315 "java/proto.go",
Colin Cross0ef08162019-05-01 15:50:51 -0700316 "java/robolectric.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800317 "java/sdk.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +0900318 "java/sdk_library.go",
Colin Crossb2559a02018-04-19 15:26:10 -0700319 "java/support_libraries.go",
Inseob Kimac1e9862019-12-09 18:15:47 +0900320 "java/sysprop.go",
Colin Cross1369cdb2017-09-29 17:58:17 -0700321 "java/system_modules.go",
Colin Crosse4759b92019-02-15 10:37:39 -0800322 "java/testing.go",
Colin Crossf0f2e2c2019-10-15 16:36:40 -0700323 "java/tradefed.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700324 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700325 testSrcs: [
Jooyung Han12df5fb2019-07-11 16:18:47 +0900326 "java/androidmk_test.go",
Colin Cross44f06682017-11-29 00:17:36 -0800327 "java/app_test.go",
Colin Cross3d7c9822019-03-01 13:46:24 -0800328 "java/device_host_converter_test.go",
Colin Cross638149e2019-01-05 22:12:12 -0800329 "java/dexpreopt_test.go",
Colin Cross76228672019-02-25 16:40:34 -0800330 "java/dexpreopt_bootjars_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700331 "java/java_test.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700332 "java/jdeps_test.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800333 "java/kotlin_test.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800334 "java/plugin_test.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800335 "java/sdk_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700336 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700337 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700338}
339
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800340bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700341 name: "soong-java-config",
342 pkgPath: "android/soong/java/config",
343 deps: [
344 "blueprint-proptools",
345 "soong-android",
346 ],
347 srcs: [
348 "java/config/config.go",
Colin Crossfee57cb2017-09-05 13:16:45 -0700349 "java/config/error_prone.go",
Colin Cross93e85952017-08-15 13:34:18 -0700350 "java/config/kotlin.go",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700351 "java/config/makevars.go",
352 ],
353}
354
355bootstrap_go_package {
Ivan Lozanoffee3342019-08-27 12:03:00 -0700356 name: "soong-rust-config",
357 pkgPath: "android/soong/rust/config",
358 deps: [
359 "soong-android",
360 "soong-cc-config",
361 ],
362 srcs: [
Ivan Lozanoe91823e2019-09-20 13:45:59 -0700363 "rust/config/arm_device.go",
Ivan Lozanof1c84332019-09-20 11:00:37 -0700364 "rust/config/arm64_device.go",
Ivan Lozanoffee3342019-08-27 12:03:00 -0700365 "rust/config/global.go",
366 "rust/config/toolchain.go",
Ivan Lozanoe169ad72019-09-18 08:42:54 -0700367 "rust/config/whitelist.go",
Ivan Lozano1c2ff862019-10-21 09:57:38 -0700368 "rust/config/x86_darwin_host.go",
Ivan Lozanoffee3342019-08-27 12:03:00 -0700369 "rust/config/x86_linux_host.go",
Chih-Hung Hsieh1f202e92019-12-11 15:25:47 -0800370 "rust/config/x86_device.go",
Ivan Lozanoffee3342019-08-27 12:03:00 -0700371 "rust/config/x86_64_device.go",
372 ],
373}
374
375bootstrap_go_package {
376 name: "soong-rust",
377 pkgPath: "android/soong/rust",
378 deps: [
379 "soong",
380 "soong-android",
381 "soong-cc",
382 "soong-rust-config",
383 ],
384 srcs: [
385 "rust/androidmk.go",
386 "rust/compiler.go",
387 "rust/binary.go",
388 "rust/builder.go",
389 "rust/library.go",
390 "rust/prebuilt.go",
391 "rust/proc_macro.go",
392 "rust/rust.go",
Chih-Hung Hsieha5f22ed2019-10-24 20:47:54 -0700393 "rust/test.go",
Ivan Lozanoffee3342019-08-27 12:03:00 -0700394 "rust/testing.go",
395 ],
396 testSrcs: [
397 "rust/binary_test.go",
398 "rust/compiler_test.go",
399 "rust/library_test.go",
400 "rust/rust_test.go",
Chih-Hung Hsieha5f22ed2019-10-24 20:47:54 -0700401 "rust/test_test.go",
Ivan Lozanoffee3342019-08-27 12:03:00 -0700402 ],
403 pluginFor: ["soong_build"],
404}
405
406bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800407 name: "soong-python",
408 pkgPath: "android/soong/python",
409 deps: [
410 "blueprint",
411 "soong-android",
yelinhsieh80880a32018-11-06 11:49:55 +0800412 "soong-tradefed",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800413 ],
414 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700415 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800416 "python/binary.go",
417 "python/builder.go",
Nan Zhanga3fc4ba2017-07-20 17:43:37 -0700418 "python/defaults.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700419 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800420 "python/library.go",
Nan Zhangb8fa1972017-12-22 16:12:00 -0800421 "python/proto.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800422 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700423 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800424 ],
425 testSrcs: [
426 "python/python_test.go",
427 ],
428 pluginFor: ["soong_build"],
429}
430
Jeff Gastonefc1b412017-03-29 17:29:06 -0700431bootstrap_go_package {
432 name: "soong-shared",
433 pkgPath: "android/soong/shared",
434 srcs: [
435 "shared/paths.go",
436 ],
437}
438
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900439bootstrap_go_package {
Colin Cross303e21f2018-08-07 16:49:25 -0700440 name: "soong-tradefed",
441 pkgPath: "android/soong/tradefed",
442 deps: [
443 "blueprint",
444 "soong-android",
445 ],
446 srcs: [
447 "tradefed/autogen.go",
448 "tradefed/config.go",
449 "tradefed/makevars.go",
450 ],
451 pluginFor: ["soong_build"],
452}
453
454bootstrap_go_package {
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900455 name: "soong-xml",
456 pkgPath: "android/soong/xml",
457 deps: [
458 "blueprint",
459 "blueprint-pathtools",
460 "soong",
461 "soong-android",
462 ],
463 srcs: [
464 "xml/xml.go",
465 ],
466 testSrcs: [
467 "xml/xml_test.go",
468 ],
469 pluginFor: ["soong_build"],
470}
471
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900472bootstrap_go_package {
473 name: "soong-apex",
474 pkgPath: "android/soong/apex",
475 deps: [
476 "blueprint",
477 "soong",
478 "soong-android",
479 "soong-cc",
480 "soong-java",
Alex Light778127a2019-02-27 14:19:50 -0800481 "soong-python",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900482 ],
483 srcs: [
Jiyong Park09d77522019-11-18 11:16:27 +0900484 "apex/androidmk.go",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900485 "apex/apex.go",
Jiyong Park09d77522019-11-18 11:16:27 +0900486 "apex/builder.go",
Jiyong Parkff1458f2018-10-12 21:49:38 +0900487 "apex/key.go",
Jiyong Park09d77522019-11-18 11:16:27 +0900488 "apex/prebuilt.go",
489 "apex/vndk.go",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900490 ],
Jiyong Park25fc6a92018-11-18 18:02:45 +0900491 testSrcs: [
492 "apex/apex_test.go",
Jooyung Hana57af4a2020-01-23 05:36:59 +0000493 "apex/vndk_test.go",
Jiyong Park25fc6a92018-11-18 18:02:45 +0900494 ],
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900495 pluginFor: ["soong_build"],
496}
497
Inseob Kimc0907f12019-02-08 21:00:45 +0900498bootstrap_go_package {
499 name: "soong-sysprop",
500 pkgPath: "android/soong/sysprop",
501 deps: [
502 "blueprint",
503 "soong",
504 "soong-android",
505 "soong-cc",
506 "soong-java",
507 ],
508 srcs: [
509 "sysprop/sysprop_library.go",
510 ],
511 testSrcs: [
512 "sysprop/sysprop_test.go",
513 ],
514 pluginFor: ["soong_build"],
515}
516
Jiyong Parkd1063c12019-07-17 20:08:41 +0900517bootstrap_go_package {
518 name: "soong-sdk",
519 pkgPath: "android/soong/sdk",
520 deps: [
521 "blueprint",
522 "soong",
523 "soong-android",
524 "soong-apex",
525 "soong-cc",
526 "soong-java",
527 ],
528 srcs: [
Paul Duffinb645ec82019-11-27 17:43:54 +0000529 "sdk/bp.go",
Paul Duffin8150da62019-12-16 17:21:27 +0000530 "sdk/exports.go",
Jiyong Parkd1063c12019-07-17 20:08:41 +0900531 "sdk/sdk.go",
Jiyong Park9b409bc2019-10-11 14:59:13 +0900532 "sdk/update.go",
Jiyong Parkd1063c12019-07-17 20:08:41 +0900533 ],
534 testSrcs: [
Paul Duffina80fdec2019-12-03 15:25:00 +0000535 "sdk/cc_sdk_test.go",
Paul Duffin8150da62019-12-16 17:21:27 +0000536 "sdk/exports_test.go",
Paul Duffina80fdec2019-12-03 15:25:00 +0000537 "sdk/java_sdk_test.go",
Jiyong Parkd1063c12019-07-17 20:08:41 +0900538 "sdk/sdk_test.go",
Paul Duffin82d90432019-11-30 09:24:33 +0000539 "sdk/testing.go",
Jiyong Parkd1063c12019-07-17 20:08:41 +0900540 ],
541 pluginFor: ["soong_build"],
542}
543
Colin Cross80031312015-03-14 14:28:22 -0700544//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800545// Defaults to enable various configurations of host bionic
546//
547
548cc_defaults {
549 name: "linux_bionic_supported",
550 host_supported: true,
551 target: {
552 host: {
553 enabled: false,
554 },
555 linux_bionic: {
556 enabled: true,
557 },
558 },
559}
560
561//
Colin Cross80031312015-03-14 14:28:22 -0700562// C static libraries extracted from the gcc toolchain
563//
564
Colin Crossba442872015-03-14 14:26:32 -0700565toolchain_library {
566 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800567 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700568 vendor_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -0800569 ramdisk_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900570 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +0100571 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700572
Dan Willemseneba363e2015-07-08 18:11:14 -0700573 arch: {
574 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700575 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
576 },
577 arm64: {
578 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
579 },
580 x86: {
581 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
582 },
583 x86_64: {
584 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 -0700585 },
586 },
Colin Crossba442872015-03-14 14:26:32 -0700587}
Colin Cross3f40fa42015-01-30 17:27:36 -0800588
Colin Crossba442872015-03-14 14:26:32 -0700589toolchain_library {
590 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800591 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700592 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900593 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +0100594 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700595
Dan Willemseneba363e2015-07-08 18:11:14 -0700596 arch: {
597 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700598 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
599 },
600 arm64: {
601 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
602 },
603 x86: {
604 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
605 },
606 x86_64: {
607 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 -0700608 },
609 },
Colin Crossba442872015-03-14 14:26:32 -0700610}
Colin Cross3f40fa42015-01-30 17:27:36 -0800611
Colin Crossba442872015-03-14 14:26:32 -0700612toolchain_library {
Yi Kongacee27c2019-03-29 20:05:14 -0700613 name: "libgcc_stripped",
614 defaults: ["linux_bionic_supported"],
615 vendor_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -0800616 ramdisk_available: true,
Yi Kongacee27c2019-03-29 20:05:14 -0700617 recovery_available: true,
dimitry0e55ba62019-05-06 10:58:10 +0200618 native_bridge_supported: true,
Peter Collingbournee5ba2862019-12-10 18:37:45 -0800619 sdk_version: "current",
Yi Kongacee27c2019-03-29 20:05:14 -0700620
621 arch: {
622 arm: {
623 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
Yi Kongc49c3932019-10-15 02:01:19 -0700624 repack_objects_to_keep: ["unwind-arm.o", "libunwind.o", "pr-support.o"],
Yi Kongacee27c2019-03-29 20:05:14 -0700625 },
626 arm64: {
627 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
Yi Kongc49c3932019-10-15 02:01:19 -0700628 repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
Yi Kongacee27c2019-03-29 20:05:14 -0700629 },
630 x86: {
631 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
Yi Kongc49c3932019-10-15 02:01:19 -0700632 repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
Yi Kongacee27c2019-03-29 20:05:14 -0700633 },
634 x86_64: {
635 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a",
Yi Kongc49c3932019-10-15 02:01:19 -0700636 repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
Yi Kongacee27c2019-03-29 20:05:14 -0700637 },
638 },
Yi Kongacee27c2019-03-29 20:05:14 -0700639}
640
641toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800642 name: "libwinpthread",
643 host_supported: true,
644 enabled: false,
645 target: {
646 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700647 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800648 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700649 windows_x86: {
650 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
651 },
652 windows_x86_64: {
653 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
654 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800655 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800656 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800657}
658
659toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700660 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800661 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700662
Dan Willemseneba363e2015-07-08 18:11:14 -0700663 arch: {
664 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700665 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
666 },
667 arm64: {
668 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
669 },
670 x86: {
671 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
672 },
673 x86_64: {
674 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 -0700675 },
676 },
Colin Crossba442872015-03-14 14:26:32 -0700677}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900678
679kernel_headers {
680 name: "device_kernel_headers",
681 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -0700682 recovery_available: true,
Jiyong Parkd773eb32017-07-03 13:18:12 +0900683}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700684
685cc_genrule {
686 name: "host_bionic_linker_asm",
687 host_supported: true,
688 device_supported: false,
689 target: {
690 linux_bionic: {
691 enabled: true,
692 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700693 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700694 enabled: false,
695 },
696 darwin: {
697 enabled: false,
698 },
699 },
700 tools: ["extract_linker"],
701 cmd: "$(location) -s $(out) $(in)",
702 srcs: [":linker"],
703 out: ["linker.s"],
704}
705
706cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700707 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700708 host_supported: true,
709 device_supported: false,
710 target: {
711 linux_bionic: {
712 enabled: true,
713 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700714 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700715 enabled: false,
716 },
717 darwin: {
718 enabled: false,
719 },
720 },
721 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700722 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700723 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700724 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700725}