blob: ec3cabb3119a37bec9cb7ccdbe0edb00f3cd07cc [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
Colin Cross4d9c2d12016-07-29 12:48:20 -0700132 "cc/compiler.go",
133 "cc/installer.go",
134 "cc/linker.go",
135
136 "cc/binary.go",
137 "cc/library.go",
138 "cc/object.go",
139 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700140 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700141
142 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700143 "cc/ndk_headers.go",
144 "cc/ndk_library.go",
145 "cc/ndk_sysroot.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800146 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700147 testSrcs: [
148 "cc/cc_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800149 "cc/test_data_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700150 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700151 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700152}
Colin Cross3f40fa42015-01-30 17:27:36 -0800153
Colin Cross5049f022015-03-18 13:28:46 -0700154bootstrap_go_package {
155 name: "soong-genrule",
156 pkgPath: "android/soong/genrule",
157 deps: [
158 "blueprint",
159 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700160 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700161 "soong-android",
Colin Cross5049f022015-03-18 13:28:46 -0700162 ],
163 srcs: [
Colin Cross068e0fe2016-12-13 15:23:47 -0800164 "genrule/filegroup.go",
Colin Cross5049f022015-03-18 13:28:46 -0700165 "genrule/genrule.go",
166 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700167 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700168}
Colin Cross2fe66872015-03-30 17:20:39 -0700169
Colin Cross2fe66872015-03-30 17:20:39 -0700170bootstrap_go_package {
171 name: "soong-java",
172 pkgPath: "android/soong/java",
173 deps: [
174 "blueprint",
175 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700176 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700177 "soong-android",
Colin Cross0607cf72015-04-28 13:28:51 -0700178 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700179 ],
180 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700181 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700182 "java/app_builder.go",
183 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700184 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700185 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700186 "java/java.go",
187 "java/resources.go",
188 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700189 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700190}
191
Colin Cross80031312015-03-14 14:28:22 -0700192//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800193// Defaults to enable various configurations of host bionic
194//
195
196cc_defaults {
197 name: "linux_bionic_supported",
198 host_supported: true,
199 target: {
200 host: {
201 enabled: false,
202 },
203 linux_bionic: {
204 enabled: true,
205 },
206 },
207}
208
209//
Colin Cross80031312015-03-14 14:28:22 -0700210// C static libraries extracted from the gcc toolchain
211//
212
Colin Crossba442872015-03-14 14:26:32 -0700213toolchain_library {
214 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800215 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700216 arch: {
217 arm: {
218 instruction_set: "arm",
219 },
220 },
Colin Crossba442872015-03-14 14:26:32 -0700221}
Colin Cross3f40fa42015-01-30 17:27:36 -0800222
Colin Crossba442872015-03-14 14:26:32 -0700223toolchain_library {
224 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800225 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700226 arch: {
227 arm: {
228 instruction_set: "arm",
229 },
230 },
Colin Crossba442872015-03-14 14:26:32 -0700231}
Colin Cross3f40fa42015-01-30 17:27:36 -0800232
Colin Crossba442872015-03-14 14:26:32 -0700233toolchain_library {
234 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800235 defaults: ["linux_bionic_supported"],
Dan Willemseneba363e2015-07-08 18:11:14 -0700236 arch: {
237 arm: {
238 instruction_set: "arm",
239 },
240 },
Colin Crossba442872015-03-14 14:26:32 -0700241}