blob: 90566a4b38323cfb794876fe8556d75804e0799c [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",
50 "android/arch.go",
51 "android/config.go",
52 "android/defaults.go",
53 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070054 "android/expand.go",
Colin Cross178a5092016-09-13 13:42:32 -070055 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070056 "android/makevars.go",
57 "android/module.go",
58 "android/mutator.go",
Colin Cross9272ade2016-08-17 15:24:12 -070059 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070060 "android/package_ctx.go",
61 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070062 "android/prebuilt.go",
Colin Cross798bfce2016-10-12 14:28:16 -070063 "android/register.go",
Colin Cross635c3b02016-05-18 15:37:25 -070064 "android/util.go",
65 "android/variable.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070066
67 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070068 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080069 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070070 testSrcs: [
Colin Cross6bde0942016-11-04 14:36:38 -070071 "android/expand_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070072 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070073 "android/prebuilt_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070074 ],
Colin Crossba442872015-03-14 14:26:32 -070075}
Colin Cross3f40fa42015-01-30 17:27:36 -080076
Colin Crossba442872015-03-14 14:26:32 -070077bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070078 name: "soong-cc-config",
79 pkgPath: "android/soong/cc/config",
80 deps: [
81 "soong-android",
82 ],
83 srcs: [
84 "cc/config/clang.go",
85 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -070086 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -070087 "cc/config/toolchain.go",
88
89 "cc/config/arm_device.go",
90 "cc/config/arm64_device.go",
91 "cc/config/mips_device.go",
92 "cc/config/mips64_device.go",
93 "cc/config/x86_device.go",
94 "cc/config/x86_64_device.go",
95
96 "cc/config/x86_darwin_host.go",
97 "cc/config/x86_linux_host.go",
98 "cc/config/x86_windows_host.go",
99 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700100 testSrcs: [
101 "cc/config/tidy_test.go",
102 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700103}
104
105bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700106 name: "soong-cc",
107 pkgPath: "android/soong/cc",
108 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800109 "blueprint",
110 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700111 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700112 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700113 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700114 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800115 ],
Colin Crossba442872015-03-14 14:26:32 -0700116 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700117 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800118 "cc/builder.go",
119 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700120 "cc/check.go",
Colin Cross581c1892015-04-07 16:50:10 -0700121 "cc/gen.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800122 "cc/makevars.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700123 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700124 "cc/proto.go",
Dan Willemsen394e9dc2016-09-14 15:04:48 -0700125 "cc/relocation_packer.go",
Colin Cross16b23492016-01-06 14:41:07 -0800126 "cc/sanitize.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",
131
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",
Colin Cross3f40fa42015-01-30 17:27:36 -0800147 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700148 testSrcs: [
149 "cc/cc_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800150 "cc/test_data_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700151 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700152 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700153}
Colin Cross3f40fa42015-01-30 17:27:36 -0800154
Colin Cross5049f022015-03-18 13:28:46 -0700155bootstrap_go_package {
156 name: "soong-genrule",
157 pkgPath: "android/soong/genrule",
158 deps: [
159 "blueprint",
160 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700161 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700162 "soong-android",
Colin Cross5049f022015-03-18 13:28:46 -0700163 ],
164 srcs: [
Colin Cross068e0fe2016-12-13 15:23:47 -0800165 "genrule/filegroup.go",
Colin Cross5049f022015-03-18 13:28:46 -0700166 "genrule/genrule.go",
167 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700168 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700169}
Colin Cross2fe66872015-03-30 17:20:39 -0700170
Colin Cross2fe66872015-03-30 17:20:39 -0700171bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800172 name: "soong-phony",
173 pkgPath: "android/soong/phony",
174 deps: [
175 "blueprint",
176 "soong-android",
177 ],
178 srcs: [
179 "phony/phony.go",
180 ],
181 pluginFor: ["soong_build"],
182}
183
184bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700185 name: "soong-java",
186 pkgPath: "android/soong/java",
187 deps: [
188 "blueprint",
189 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700190 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700191 "soong-android",
Colin Cross0607cf72015-04-28 13:28:51 -0700192 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700193 ],
194 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700195 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700196 "java/app_builder.go",
197 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700198 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700199 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700200 "java/java.go",
201 "java/resources.go",
202 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700203 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700204}
205
Colin Cross80031312015-03-14 14:28:22 -0700206//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800207// Defaults to enable various configurations of host bionic
208//
209
210cc_defaults {
211 name: "linux_bionic_supported",
212 host_supported: true,
213 target: {
214 host: {
215 enabled: false,
216 },
217 linux_bionic: {
218 enabled: true,
219 },
220 },
221}
222
223//
Colin Cross80031312015-03-14 14:28:22 -0700224// C static libraries extracted from the gcc toolchain
225//
226
Colin Crossba442872015-03-14 14:26:32 -0700227toolchain_library {
228 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800229 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700230 arch: {
231 arm: {
232 instruction_set: "arm",
233 },
234 },
Colin Crossba442872015-03-14 14:26:32 -0700235}
Colin Cross3f40fa42015-01-30 17:27:36 -0800236
Colin Crossba442872015-03-14 14:26:32 -0700237toolchain_library {
238 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800239 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700240 arch: {
241 arm: {
242 instruction_set: "arm",
243 },
244 },
Colin Crossba442872015-03-14 14:26:32 -0700245}
Colin Cross3f40fa42015-01-30 17:27:36 -0800246
Colin Crossba442872015-03-14 14:26:32 -0700247toolchain_library {
248 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800249 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700250 arch: {
251 arm: {
252 instruction_set: "arm",
253 },
254 },
Colin Crossba442872015-03-14 14:26:32 -0700255}