blob: d1b8f0022f8ff096d4c842e6018aa150c314cd4b [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",
Dan Willemsen377737a2016-08-15 15:02:23 -07007 "third_party/zip",
Dan Willemsen1e704462016-08-21 15:17:17 -07008 "ui/*",
Dan Willemsen377737a2016-08-15 15:02:23 -07009]
Colin Cross68f55102015-03-25 14:43:57 -070010
11bootstrap_go_package {
12 name: "soong-env",
13 pkgPath: "android/soong/env",
14 srcs: [
15 "env/env.go",
16 ],
17}
18
Colin Crossba442872015-03-14 14:26:32 -070019bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070020 name: "soong",
21 pkgPath: "android/soong",
22 deps: [
23 "blueprint",
24 ],
25 srcs: [
26 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070027 ],
28}
29
30bootstrap_go_package {
Colin Cross635c3b02016-05-18 15:37:25 -070031 name: "soong-android",
32 pkgPath: "android/soong/android",
Colin Crossba442872015-03-14 14:26:32 -070033 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080034 "blueprint",
35 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070036 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070037 "soong-env",
Colin Cross3f40fa42015-01-30 17:27:36 -080038 ],
Colin Crossba442872015-03-14 14:26:32 -070039 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070040 "android/androidmk.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070041 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070042 "android/arch.go",
43 "android/config.go",
44 "android/defaults.go",
45 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070046 "android/expand.go",
Colin Cross178a5092016-09-13 13:42:32 -070047 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070048 "android/makevars.go",
49 "android/module.go",
50 "android/mutator.go",
Colin Cross9272ade2016-08-17 15:24:12 -070051 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070052 "android/package_ctx.go",
53 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070054 "android/prebuilt.go",
Colin Cross798bfce2016-10-12 14:28:16 -070055 "android/register.go",
Colin Crosscec81712017-07-13 14:43:27 -070056 "android/testing.go",
Colin Cross635c3b02016-05-18 15:37:25 -070057 "android/util.go",
58 "android/variable.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070059
60 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070061 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080062 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070063 testSrcs: [
Colin Cross6bde0942016-11-04 14:36:38 -070064 "android/expand_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070065 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070066 "android/prebuilt_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070067 "android/variable_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070068 ],
Colin Crossba442872015-03-14 14:26:32 -070069}
Colin Cross3f40fa42015-01-30 17:27:36 -080070
Colin Crossba442872015-03-14 14:26:32 -070071bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070072 name: "soong-cc-config",
73 pkgPath: "android/soong/cc/config",
74 deps: [
75 "soong-android",
76 ],
77 srcs: [
78 "cc/config/clang.go",
79 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -070080 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070081 "cc/config/toolchain.go",
82
83 "cc/config/arm_device.go",
84 "cc/config/arm64_device.go",
85 "cc/config/mips_device.go",
86 "cc/config/mips64_device.go",
87 "cc/config/x86_device.go",
88 "cc/config/x86_64_device.go",
89
90 "cc/config/x86_darwin_host.go",
91 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -070092 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070093 "cc/config/x86_windows_host.go",
94 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -070095 testSrcs: [
96 "cc/config/tidy_test.go",
97 ],
Colin Crossb98c8b02016-07-29 13:44:28 -070098}
99
100bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700101 name: "soong-cc",
102 pkgPath: "android/soong/cc",
103 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800104 "blueprint",
105 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700106 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700107 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700108 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700109 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800110 ],
Colin Crossba442872015-03-14 14:26:32 -0700111 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700112 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800113 "cc/builder.go",
114 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700115 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800116 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700117 "cc/gen.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700118 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800119 "cc/makevars.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700120 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700121 "cc/proto.go",
Dan Willemsen394e9dc2016-09-14 15:04:48 -0700122 "cc/relocation_packer.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700123 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800124 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800125 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800126 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700127 "cc/strip.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700128 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800129 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900130 "cc/vndk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800131
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800132 "cc/cmakelists.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700133 "cc/compiler.go",
134 "cc/installer.go",
135 "cc/linker.go",
136
137 "cc/binary.go",
138 "cc/library.go",
139 "cc/object.go",
140 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700141 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700142
143 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700144 "cc/ndk_headers.go",
145 "cc/ndk_library.go",
146 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700147
148 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900149
150 "cc/kernel_headers.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800151 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700152 testSrcs: [
153 "cc/cc_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800154 "cc/test_data_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700155 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700156 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700157}
Colin Cross3f40fa42015-01-30 17:27:36 -0800158
Colin Cross5049f022015-03-18 13:28:46 -0700159bootstrap_go_package {
160 name: "soong-genrule",
161 pkgPath: "android/soong/genrule",
162 deps: [
163 "blueprint",
164 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700165 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700166 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700167 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700168 ],
169 srcs: [
Colin Cross068e0fe2016-12-13 15:23:47 -0800170 "genrule/filegroup.go",
Colin Cross5049f022015-03-18 13:28:46 -0700171 "genrule/genrule.go",
172 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700173 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700174}
Colin Cross2fe66872015-03-30 17:20:39 -0700175
Colin Cross2fe66872015-03-30 17:20:39 -0700176bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800177 name: "soong-phony",
178 pkgPath: "android/soong/phony",
179 deps: [
180 "blueprint",
181 "soong-android",
182 ],
183 srcs: [
184 "phony/phony.go",
185 ],
186 pluginFor: ["soong_build"],
187}
188
189bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700190 name: "soong-java",
191 pkgPath: "android/soong/java",
192 deps: [
193 "blueprint",
194 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700195 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700196 "soong-android",
Colin Cross0607cf72015-04-28 13:28:51 -0700197 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700198 "soong-java-config",
Colin Cross2fe66872015-03-30 17:20:39 -0700199 ],
200 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700201 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700202 "java/app_builder.go",
203 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700204 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700205 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700206 "java/java.go",
207 "java/resources.go",
208 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700209 testSrcs: [
210 "java/java_test.go",
211 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700212 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700213}
214
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800215bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700216 name: "soong-java-config",
217 pkgPath: "android/soong/java/config",
218 deps: [
219 "blueprint-proptools",
220 "soong-android",
221 ],
222 srcs: [
223 "java/config/config.go",
224 "java/config/makevars.go",
225 ],
226}
227
228bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800229 name: "soong-python",
230 pkgPath: "android/soong/python",
231 deps: [
232 "blueprint",
233 "soong-android",
234 ],
235 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700236 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800237 "python/binary.go",
238 "python/builder.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700239 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800240 "python/library.go",
241 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700242 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800243 ],
244 testSrcs: [
245 "python/python_test.go",
246 ],
247 pluginFor: ["soong_build"],
248}
249
Jeff Gastonefc1b412017-03-29 17:29:06 -0700250bootstrap_go_package {
251 name: "soong-shared",
252 pkgPath: "android/soong/shared",
253 srcs: [
254 "shared/paths.go",
255 ],
256}
257
Colin Cross80031312015-03-14 14:28:22 -0700258//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800259// Defaults to enable various configurations of host bionic
260//
261
262cc_defaults {
263 name: "linux_bionic_supported",
264 host_supported: true,
265 target: {
266 host: {
267 enabled: false,
268 },
269 linux_bionic: {
270 enabled: true,
271 },
272 },
273}
274
275//
Colin Cross80031312015-03-14 14:28:22 -0700276// C static libraries extracted from the gcc toolchain
277//
278
Colin Crossba442872015-03-14 14:26:32 -0700279toolchain_library {
280 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800281 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700282 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700283 arch: {
284 arm: {
285 instruction_set: "arm",
286 },
287 },
Colin Crossba442872015-03-14 14:26:32 -0700288}
Colin Cross3f40fa42015-01-30 17:27:36 -0800289
Colin Crossba442872015-03-14 14:26:32 -0700290toolchain_library {
291 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800292 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700293 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700294 arch: {
295 arm: {
296 instruction_set: "arm",
297 },
298 },
Colin Crossba442872015-03-14 14:26:32 -0700299}
Colin Cross3f40fa42015-01-30 17:27:36 -0800300
Colin Crossba442872015-03-14 14:26:32 -0700301toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800302 name: "libwinpthread",
303 host_supported: true,
304 enabled: false,
305 target: {
306 windows: {
307 enabled: true
308 },
309 },
310}
311
312toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700313 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800314 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700315 arch: {
316 arm: {
317 instruction_set: "arm",
318 },
319 },
Colin Crossba442872015-03-14 14:26:32 -0700320}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900321
322kernel_headers {
323 name: "device_kernel_headers",
324 vendor: true,
325}