blob: 89bd6ea9f925d5815bef83521777b826235d5b4e [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",
Dan Willemsen377737a2016-08-15 15:02:23 -07008 "third_party/zip",
Dan Willemsen1e704462016-08-21 15:17:17 -07009 "ui/*",
Dan Willemsen377737a2016-08-15 15:02:23 -070010]
Colin Cross68f55102015-03-25 14:43:57 -070011
12bootstrap_go_package {
13 name: "soong-env",
14 pkgPath: "android/soong/env",
15 srcs: [
16 "env/env.go",
17 ],
18}
19
Colin Crossba442872015-03-14 14:26:32 -070020bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070021 name: "soong",
22 pkgPath: "android/soong",
23 deps: [
24 "blueprint",
25 ],
26 srcs: [
27 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070028 ],
29}
30
31bootstrap_go_package {
Colin Cross635c3b02016-05-18 15:37:25 -070032 name: "soong-android",
33 pkgPath: "android/soong/android",
Colin Crossba442872015-03-14 14:26:32 -070034 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080035 "blueprint",
36 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070037 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070038 "soong-env",
Colin Cross3f40fa42015-01-30 17:27:36 -080039 ],
Colin Crossba442872015-03-14 14:26:32 -070040 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070041 "android/androidmk.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070042 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070043 "android/arch.go",
44 "android/config.go",
45 "android/defaults.go",
46 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070047 "android/expand.go",
Colin Cross178a5092016-09-13 13:42:32 -070048 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070049 "android/makevars.go",
50 "android/module.go",
51 "android/mutator.go",
Colin Cross9272ade2016-08-17 15:24:12 -070052 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070053 "android/package_ctx.go",
54 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070055 "android/prebuilt.go",
Colin Cross798bfce2016-10-12 14:28:16 -070056 "android/register.go",
Colin Crosscec81712017-07-13 14:43:27 -070057 "android/testing.go",
Colin Cross635c3b02016-05-18 15:37:25 -070058 "android/util.go",
59 "android/variable.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070060
61 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070062 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080063 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070064 testSrcs: [
Colin Cross6bde0942016-11-04 14:36:38 -070065 "android/expand_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070066 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070067 "android/prebuilt_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070068 "android/variable_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070069 ],
Colin Crossba442872015-03-14 14:26:32 -070070}
Colin Cross3f40fa42015-01-30 17:27:36 -080071
Colin Crossba442872015-03-14 14:26:32 -070072bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070073 name: "soong-cc-config",
74 pkgPath: "android/soong/cc/config",
75 deps: [
76 "soong-android",
77 ],
78 srcs: [
79 "cc/config/clang.go",
80 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -070081 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070082 "cc/config/toolchain.go",
83
84 "cc/config/arm_device.go",
85 "cc/config/arm64_device.go",
86 "cc/config/mips_device.go",
87 "cc/config/mips64_device.go",
88 "cc/config/x86_device.go",
89 "cc/config/x86_64_device.go",
90
91 "cc/config/x86_darwin_host.go",
92 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -070093 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070094 "cc/config/x86_windows_host.go",
95 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -070096 testSrcs: [
97 "cc/config/tidy_test.go",
98 ],
Colin Crossb98c8b02016-07-29 13:44:28 -070099}
100
101bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700102 name: "soong-cc",
103 pkgPath: "android/soong/cc",
104 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800105 "blueprint",
106 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700107 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700108 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700109 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700110 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800111 ],
Colin Crossba442872015-03-14 14:26:32 -0700112 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700113 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800114 "cc/builder.go",
115 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700116 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800117 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700118 "cc/gen.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700119 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800120 "cc/makevars.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700121 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700122 "cc/proto.go",
Dan Willemsen394e9dc2016-09-14 15:04:48 -0700123 "cc/relocation_packer.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700124 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800125 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800126 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800127 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700128 "cc/strip.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700129 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800130 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900131 "cc/vndk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800132
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800133 "cc/cmakelists.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700134 "cc/compiler.go",
135 "cc/installer.go",
136 "cc/linker.go",
137
138 "cc/binary.go",
139 "cc/library.go",
140 "cc/object.go",
141 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700142 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700143
144 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700145 "cc/ndk_headers.go",
146 "cc/ndk_library.go",
147 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700148
149 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900150
151 "cc/kernel_headers.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800152 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700153 testSrcs: [
154 "cc/cc_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800155 "cc/test_data_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700156 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700157 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700158}
Colin Cross3f40fa42015-01-30 17:27:36 -0800159
Colin Cross5049f022015-03-18 13:28:46 -0700160bootstrap_go_package {
161 name: "soong-genrule",
162 pkgPath: "android/soong/genrule",
163 deps: [
164 "blueprint",
165 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700166 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700167 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700168 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700169 ],
170 srcs: [
Colin Cross068e0fe2016-12-13 15:23:47 -0800171 "genrule/filegroup.go",
Colin Cross5049f022015-03-18 13:28:46 -0700172 "genrule/genrule.go",
173 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700174 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700175}
Colin Cross2fe66872015-03-30 17:20:39 -0700176
Colin Cross2fe66872015-03-30 17:20:39 -0700177bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800178 name: "soong-phony",
179 pkgPath: "android/soong/phony",
180 deps: [
181 "blueprint",
182 "soong-android",
183 ],
184 srcs: [
185 "phony/phony.go",
186 ],
187 pluginFor: ["soong_build"],
188}
189
190bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700191 name: "soong-java",
192 pkgPath: "android/soong/java",
193 deps: [
194 "blueprint",
195 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700196 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700197 "soong-android",
Colin Cross0607cf72015-04-28 13:28:51 -0700198 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700199 "soong-java-config",
Colin Cross2fe66872015-03-30 17:20:39 -0700200 ],
201 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700202 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700203 "java/app_builder.go",
204 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700205 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700206 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700207 "java/java.go",
208 "java/resources.go",
209 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700210 testSrcs: [
211 "java/java_test.go",
212 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700213 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700214}
215
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800216bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700217 name: "soong-java-config",
218 pkgPath: "android/soong/java/config",
219 deps: [
220 "blueprint-proptools",
221 "soong-android",
222 ],
223 srcs: [
224 "java/config/config.go",
Colin Crossfee57cb2017-09-05 13:16:45 -0700225 "java/config/error_prone.go",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700226 "java/config/makevars.go",
227 ],
228}
229
230bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800231 name: "soong-python",
232 pkgPath: "android/soong/python",
233 deps: [
234 "blueprint",
235 "soong-android",
236 ],
237 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700238 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800239 "python/binary.go",
240 "python/builder.go",
Nan Zhanga3fc4ba2017-07-20 17:43:37 -0700241 "python/defaults.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700242 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800243 "python/library.go",
244 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700245 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800246 ],
247 testSrcs: [
248 "python/python_test.go",
249 ],
250 pluginFor: ["soong_build"],
251}
252
Jeff Gastonefc1b412017-03-29 17:29:06 -0700253bootstrap_go_package {
254 name: "soong-shared",
255 pkgPath: "android/soong/shared",
256 srcs: [
257 "shared/paths.go",
258 ],
259}
260
Colin Cross80031312015-03-14 14:28:22 -0700261//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800262// Defaults to enable various configurations of host bionic
263//
264
265cc_defaults {
266 name: "linux_bionic_supported",
267 host_supported: true,
268 target: {
269 host: {
270 enabled: false,
271 },
272 linux_bionic: {
273 enabled: true,
274 },
275 },
276}
277
278//
Colin Cross80031312015-03-14 14:28:22 -0700279// C static libraries extracted from the gcc toolchain
280//
281
Colin Crossba442872015-03-14 14:26:32 -0700282toolchain_library {
283 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800284 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700285 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700286 arch: {
287 arm: {
288 instruction_set: "arm",
289 },
290 },
Colin Crossba442872015-03-14 14:26:32 -0700291}
Colin Cross3f40fa42015-01-30 17:27:36 -0800292
Colin Crossba442872015-03-14 14:26:32 -0700293toolchain_library {
294 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800295 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700296 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700297 arch: {
298 arm: {
299 instruction_set: "arm",
300 },
301 },
Colin Crossba442872015-03-14 14:26:32 -0700302}
Colin Cross3f40fa42015-01-30 17:27:36 -0800303
Colin Crossba442872015-03-14 14:26:32 -0700304toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800305 name: "libwinpthread",
306 host_supported: true,
307 enabled: false,
308 target: {
309 windows: {
310 enabled: true
311 },
312 },
313}
314
315toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700316 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800317 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700318 arch: {
319 arm: {
320 instruction_set: "arm",
321 },
322 },
Colin Crossba442872015-03-14 14:26:32 -0700323}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900324
325kernel_headers {
326 name: "device_kernel_headers",
327 vendor: true,
328}