blob: 1b40d40250705c1805daa3d5470e6301cde5d093 [file] [log] [blame]
Colin Cross3f40fa42015-01-30 17:27:36 -08001//
2// WARNING: Modifying this file will NOT automatically regenerate build.ninja.in!
3//
4// Before modifying this file make sure minibp is up to date:
5// 1) "repo sync build/soong" to make sure you have the latest build.ninja.in
6// 2) build minibp, which builds automicatically through the normal build steps. For example:
7//
8// After modifying this file regenerate build.ninja.in and build your changes:
9// 1) In your build directory, execute "../bootstrap.bash -r" to regenerate build.ninja.in
10// 2) Build again
11//
12
Dan Willemsen377737a2016-08-15 15:02:23 -070013subdirs = [
14 "androidmk",
15 "cmd/*",
16 "third_party/zip",
Dan Willemsen1e704462016-08-21 15:17:17 -070017 "ui/*",
Dan Willemsen377737a2016-08-15 15:02:23 -070018]
Colin Cross68f55102015-03-25 14:43:57 -070019
20bootstrap_go_package {
21 name: "soong-env",
22 pkgPath: "android/soong/env",
23 srcs: [
24 "env/env.go",
25 ],
26}
27
Colin Crossba442872015-03-14 14:26:32 -070028bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070029 name: "soong",
30 pkgPath: "android/soong",
31 deps: [
32 "blueprint",
33 ],
34 srcs: [
35 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070036 ],
37}
38
39bootstrap_go_package {
Colin Cross635c3b02016-05-18 15:37:25 -070040 name: "soong-android",
41 pkgPath: "android/soong/android",
Colin Crossba442872015-03-14 14:26:32 -070042 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080043 "blueprint",
44 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070045 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070046 "soong-env",
Simon Shieldse9e78a52017-08-23 12:05:33 +100047 "soong-bliss",
Colin Cross3f40fa42015-01-30 17:27:36 -080048 ],
Colin Crossba442872015-03-14 14:26:32 -070049 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070050 "android/androidmk.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070051 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070052 "android/arch.go",
53 "android/config.go",
54 "android/defaults.go",
55 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070056 "android/expand.go",
Colin Cross178a5092016-09-13 13:42:32 -070057 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070058 "android/makevars.go",
59 "android/module.go",
60 "android/mutator.go",
Colin Cross9272ade2016-08-17 15:24:12 -070061 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070062 "android/package_ctx.go",
63 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070064 "android/prebuilt.go",
Colin Cross798bfce2016-10-12 14:28:16 -070065 "android/register.go",
Colin Cross635c3b02016-05-18 15:37:25 -070066 "android/util.go",
67 "android/variable.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070068
69 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070070 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080071 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070072 testSrcs: [
Colin Cross6bde0942016-11-04 14:36:38 -070073 "android/expand_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070074 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070075 "android/prebuilt_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070076 "android/variable_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070077 ],
Colin Crossba442872015-03-14 14:26:32 -070078}
Colin Cross3f40fa42015-01-30 17:27:36 -080079
Colin Crossba442872015-03-14 14:26:32 -070080bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070081 name: "soong-cc-config",
82 pkgPath: "android/soong/cc/config",
83 deps: [
84 "soong-android",
85 ],
86 srcs: [
87 "cc/config/clang.go",
88 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -070089 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070090 "cc/config/toolchain.go",
91
92 "cc/config/arm_device.go",
93 "cc/config/arm64_device.go",
94 "cc/config/mips_device.go",
95 "cc/config/mips64_device.go",
96 "cc/config/x86_device.go",
97 "cc/config/x86_64_device.go",
98
99 "cc/config/x86_darwin_host.go",
100 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700101 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700102 "cc/config/x86_windows_host.go",
103 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700104 testSrcs: [
105 "cc/config/tidy_test.go",
106 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700107}
108
109bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700110 name: "soong-cc",
111 pkgPath: "android/soong/cc",
112 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800113 "blueprint",
114 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700115 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700116 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700117 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700118 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800119 ],
Colin Crossba442872015-03-14 14:26:32 -0700120 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700121 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800122 "cc/builder.go",
123 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700124 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800125 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700126 "cc/gen.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800127 "cc/makevars.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700128 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700129 "cc/proto.go",
Dan Willemsen394e9dc2016-09-14 15:04:48 -0700130 "cc/relocation_packer.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700131 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800132 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800133 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800134 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700135 "cc/strip.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700136 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800137 "cc/util.go",
138
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800139 "cc/cmakelists.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700140 "cc/compiler.go",
141 "cc/installer.go",
142 "cc/linker.go",
143
144 "cc/binary.go",
145 "cc/library.go",
146 "cc/object.go",
147 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700148 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700149
150 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700151 "cc/ndk_headers.go",
152 "cc/ndk_library.go",
153 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700154
155 "cc/llndk_library.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800156 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700157 testSrcs: [
158 "cc/cc_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800159 "cc/test_data_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700160 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700161 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700162}
Colin Cross3f40fa42015-01-30 17:27:36 -0800163
Colin Cross5049f022015-03-18 13:28:46 -0700164bootstrap_go_package {
165 name: "soong-genrule",
166 pkgPath: "android/soong/genrule",
167 deps: [
168 "blueprint",
169 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700170 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700171 "soong-android",
Colin Cross5049f022015-03-18 13:28:46 -0700172 ],
173 srcs: [
Colin Cross068e0fe2016-12-13 15:23:47 -0800174 "genrule/filegroup.go",
Colin Cross5049f022015-03-18 13:28:46 -0700175 "genrule/genrule.go",
176 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700177 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700178}
Colin Cross2fe66872015-03-30 17:20:39 -0700179
Colin Cross2fe66872015-03-30 17:20:39 -0700180bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800181 name: "soong-phony",
182 pkgPath: "android/soong/phony",
183 deps: [
184 "blueprint",
185 "soong-android",
186 ],
187 srcs: [
188 "phony/phony.go",
189 ],
190 pluginFor: ["soong_build"],
191}
192
193bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700194 name: "soong-java",
195 pkgPath: "android/soong/java",
196 deps: [
197 "blueprint",
198 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700199 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700200 "soong-android",
Colin Cross0607cf72015-04-28 13:28:51 -0700201 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700202 ],
203 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700204 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700205 "java/app_builder.go",
206 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700207 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700208 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700209 "java/java.go",
210 "java/resources.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 {
216 name: "soong-python",
217 pkgPath: "android/soong/python",
218 deps: [
219 "blueprint",
220 "soong-android",
221 ],
222 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700223 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800224 "python/binary.go",
225 "python/builder.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700226 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800227 "python/library.go",
228 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700229 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800230 ],
231 testSrcs: [
232 "python/python_test.go",
233 ],
234 pluginFor: ["soong_build"],
235}
236
Colin Cross80031312015-03-14 14:28:22 -0700237//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800238// Defaults to enable various configurations of host bionic
239//
240
241cc_defaults {
242 name: "linux_bionic_supported",
243 host_supported: true,
244 target: {
245 host: {
246 enabled: false,
247 },
248 linux_bionic: {
249 enabled: true,
250 },
251 },
252}
253
254//
Colin Cross80031312015-03-14 14:28:22 -0700255// C static libraries extracted from the gcc toolchain
256//
257
Colin Crossba442872015-03-14 14:26:32 -0700258toolchain_library {
259 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800260 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700261 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700262 arch: {
263 arm: {
264 instruction_set: "arm",
265 },
266 },
Colin Crossba442872015-03-14 14:26:32 -0700267}
Colin Cross3f40fa42015-01-30 17:27:36 -0800268
Colin Crossba442872015-03-14 14:26:32 -0700269toolchain_library {
270 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800271 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700272 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700273 arch: {
274 arm: {
275 instruction_set: "arm",
276 },
277 },
Colin Crossba442872015-03-14 14:26:32 -0700278}
Colin Cross3f40fa42015-01-30 17:27:36 -0800279
Colin Crossba442872015-03-14 14:26:32 -0700280toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800281 name: "libwinpthread",
282 host_supported: true,
283 enabled: false,
284 target: {
285 windows: {
286 enabled: true
287 },
288 },
289}
290
291toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700292 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800293 defaults: ["linux_bionic_supported"],
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}