blob: d172fd5f9825b9c169ce2213022c32a00db8140e [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",
Colin Cross3f40fa42015-01-30 17:27:36 -080047 ],
Colin Crossba442872015-03-14 14:26:32 -070048 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070049 "android/androidmk.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070050 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070051 "android/arch.go",
52 "android/config.go",
53 "android/defaults.go",
54 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070055 "android/expand.go",
Colin Cross178a5092016-09-13 13:42:32 -070056 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070057 "android/makevars.go",
58 "android/module.go",
59 "android/mutator.go",
Colin Cross9272ade2016-08-17 15:24:12 -070060 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070061 "android/package_ctx.go",
62 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070063 "android/prebuilt.go",
Colin Cross798bfce2016-10-12 14:28:16 -070064 "android/register.go",
Colin Cross635c3b02016-05-18 15:37:25 -070065 "android/util.go",
66 "android/variable.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070067
68 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070069 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080070 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070071 testSrcs: [
Colin Cross6bde0942016-11-04 14:36:38 -070072 "android/expand_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070073 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070074 "android/prebuilt_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070075 "android/variable_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070076 ],
Colin Crossba442872015-03-14 14:26:32 -070077}
Colin Cross3f40fa42015-01-30 17:27:36 -080078
Colin Crossba442872015-03-14 14:26:32 -070079bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070080 name: "soong-cc-config",
81 pkgPath: "android/soong/cc/config",
82 deps: [
83 "soong-android",
84 ],
85 srcs: [
86 "cc/config/clang.go",
87 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -070088 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070089 "cc/config/toolchain.go",
90
91 "cc/config/arm_device.go",
92 "cc/config/arm64_device.go",
93 "cc/config/mips_device.go",
94 "cc/config/mips64_device.go",
95 "cc/config/x86_device.go",
96 "cc/config/x86_64_device.go",
97
98 "cc/config/x86_darwin_host.go",
99 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700100 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700101 "cc/config/x86_windows_host.go",
102 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700103 testSrcs: [
104 "cc/config/tidy_test.go",
105 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700106}
107
108bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700109 name: "soong-cc",
110 pkgPath: "android/soong/cc",
111 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800112 "blueprint",
113 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700114 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700115 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700116 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700117 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800118 ],
Colin Crossba442872015-03-14 14:26:32 -0700119 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700120 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800121 "cc/builder.go",
122 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700123 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800124 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700125 "cc/gen.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800126 "cc/makevars.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700127 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700128 "cc/proto.go",
Dan Willemsen394e9dc2016-09-14 15:04:48 -0700129 "cc/relocation_packer.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700130 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800131 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800132 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800133 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700134 "cc/strip.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700135 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800136 "cc/util.go",
137
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800138 "cc/cmakelists.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700139 "cc/compiler.go",
140 "cc/installer.go",
141 "cc/linker.go",
142
143 "cc/binary.go",
144 "cc/library.go",
145 "cc/object.go",
146 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700147 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700148
149 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700150 "cc/ndk_headers.go",
151 "cc/ndk_library.go",
152 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700153
154 "cc/llndk_library.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800155 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700156 testSrcs: [
157 "cc/cc_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800158 "cc/test_data_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700159 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700160 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700161}
Colin Cross3f40fa42015-01-30 17:27:36 -0800162
Colin Cross5049f022015-03-18 13:28:46 -0700163bootstrap_go_package {
164 name: "soong-genrule",
165 pkgPath: "android/soong/genrule",
166 deps: [
167 "blueprint",
168 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700169 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700170 "soong-android",
Colin Cross5049f022015-03-18 13:28:46 -0700171 ],
172 srcs: [
Colin Cross068e0fe2016-12-13 15:23:47 -0800173 "genrule/filegroup.go",
Colin Cross5049f022015-03-18 13:28:46 -0700174 "genrule/genrule.go",
175 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700176 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700177}
Colin Cross2fe66872015-03-30 17:20:39 -0700178
Colin Cross2fe66872015-03-30 17:20:39 -0700179bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800180 name: "soong-phony",
181 pkgPath: "android/soong/phony",
182 deps: [
183 "blueprint",
184 "soong-android",
185 ],
186 srcs: [
187 "phony/phony.go",
188 ],
189 pluginFor: ["soong_build"],
190}
191
192bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700193 name: "soong-java",
194 pkgPath: "android/soong/java",
195 deps: [
196 "blueprint",
197 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700198 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700199 "soong-android",
Colin Cross0607cf72015-04-28 13:28:51 -0700200 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700201 ],
202 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700203 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700204 "java/app_builder.go",
205 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700206 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700207 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700208 "java/java.go",
209 "java/resources.go",
210 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700211 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700212}
213
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800214bootstrap_go_package {
215 name: "soong-python",
216 pkgPath: "android/soong/python",
217 deps: [
218 "blueprint",
219 "soong-android",
220 ],
221 srcs: [
222 "python/binary.go",
223 "python/builder.go",
224 "python/library.go",
225 "python/python.go",
226 ],
227 testSrcs: [
228 "python/python_test.go",
229 ],
230 pluginFor: ["soong_build"],
231}
232
Colin Cross80031312015-03-14 14:28:22 -0700233//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800234// Defaults to enable various configurations of host bionic
235//
236
237cc_defaults {
238 name: "linux_bionic_supported",
239 host_supported: true,
240 target: {
241 host: {
242 enabled: false,
243 },
244 linux_bionic: {
245 enabled: true,
246 },
247 },
248}
249
250//
Colin Cross80031312015-03-14 14:28:22 -0700251// C static libraries extracted from the gcc toolchain
252//
253
Colin Crossba442872015-03-14 14:26:32 -0700254toolchain_library {
255 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800256 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700257 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700258 arch: {
259 arm: {
260 instruction_set: "arm",
261 },
262 },
Colin Crossba442872015-03-14 14:26:32 -0700263}
Colin Cross3f40fa42015-01-30 17:27:36 -0800264
Colin Crossba442872015-03-14 14:26:32 -0700265toolchain_library {
266 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800267 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700268 vendor_available: true,
Dan Willemseneba363e2015-07-08 18:11:14 -0700269 arch: {
270 arm: {
271 instruction_set: "arm",
272 },
273 },
Colin Crossba442872015-03-14 14:26:32 -0700274}
Colin Cross3f40fa42015-01-30 17:27:36 -0800275
Colin Crossba442872015-03-14 14:26:32 -0700276toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800277 name: "libwinpthread",
278 host_supported: true,
279 enabled: false,
280 target: {
281 windows: {
282 enabled: true
283 },
284 },
285}
286
287toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700288 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800289 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700290 arch: {
291 arm: {
292 instruction_set: "arm",
293 },
294 },
Colin Crossba442872015-03-14 14:26:32 -0700295}