blob: b6f6a6396b99daa20357a14dccc2deb0b9ae97ad [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
Colin Crossba442872015-03-14 14:26:32 -070013bootstrap_go_binary {
14 name: "soong_build",
15 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080016 "blueprint",
17 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070018 "soong",
Colin Cross3f40fa42015-01-30 17:27:36 -080019 "soong-common",
Colin Cross68f55102015-03-25 14:43:57 -070020 "soong-env",
Colin Cross3f40fa42015-01-30 17:27:36 -080021 ],
Colin Crossba442872015-03-14 14:26:32 -070022 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080023 "cmd/soong_build/main.go",
24 ],
Colin Crossba442872015-03-14 14:26:32 -070025 primaryBuilder: true,
26}
Colin Cross3f40fa42015-01-30 17:27:36 -080027
Colin Crossba442872015-03-14 14:26:32 -070028bootstrap_go_binary {
Colin Cross68f55102015-03-25 14:43:57 -070029 name: "soong_env",
30 deps: [
31 "soong-env",
32 ],
33 srcs: [
34 "cmd/soong_env/soong_env.go",
35 ],
36}
37
38bootstrap_go_package {
39 name: "soong-env",
40 pkgPath: "android/soong/env",
41 srcs: [
42 "env/env.go",
43 ],
44}
45
46
47bootstrap_go_binary {
Colin Crossba442872015-03-14 14:26:32 -070048 name: "soong_glob",
49 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080050 "soong-glob",
51 ],
Colin Crossba442872015-03-14 14:26:32 -070052 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080053 "cmd/soong_glob/soong_glob.go",
54 ],
Colin Crossba442872015-03-14 14:26:32 -070055}
Colin Cross3f40fa42015-01-30 17:27:36 -080056
Colin Crossba442872015-03-14 14:26:32 -070057bootstrap_go_package {
58 name: "soong-glob",
59 pkgPath: "android/soong/glob",
60 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080061 "blueprint-deptools",
Colin Cross6f23ef62015-04-24 15:12:39 -070062 "blueprint-pathtools",
Colin Cross3f40fa42015-01-30 17:27:36 -080063 ],
Colin Crossba442872015-03-14 14:26:32 -070064 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080065 "glob/glob.go",
66 ],
Colin Crossba442872015-03-14 14:26:32 -070067}
Colin Cross3f40fa42015-01-30 17:27:36 -080068
Colin Crossba442872015-03-14 14:26:32 -070069bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070070 name: "soong",
71 pkgPath: "android/soong",
72 deps: [
73 "blueprint",
74 ],
75 srcs: [
76 "doc.go",
77 "register.go",
78 ],
79}
80
81bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -070082 name: "soong-common",
83 pkgPath: "android/soong/common",
84 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080085 "blueprint",
86 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070087 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070088 "soong-env",
Colin Crossba442872015-03-14 14:26:32 -070089 "soong-glob",
Colin Cross3f40fa42015-01-30 17:27:36 -080090 ],
Colin Crossba442872015-03-14 14:26:32 -070091 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -070092 "common/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080093 "common/arch.go",
Colin Cross1332b002015-04-07 17:11:30 -070094 "common/config.go",
Colin Crosscfad1192015-11-02 16:43:11 -080095 "common/defaults.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080096 "common/defs.go",
Colin Cross68f55102015-03-25 14:43:57 -070097 "common/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080098 "common/glob.go",
99 "common/module.go",
Colin Cross6362e272015-10-29 15:25:03 -0700100 "common/mutator.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -0700101 "common/package_ctx.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800102 "common/paths.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700103 "common/util.go",
Colin Cross7f64b6d2015-07-09 13:57:48 -0700104 "common/variable.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800105 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -0700106 testSrcs: [
107 "common/paths_test.go",
108 ],
Colin Crossba442872015-03-14 14:26:32 -0700109}
Colin Cross3f40fa42015-01-30 17:27:36 -0800110
Colin Crossba442872015-03-14 14:26:32 -0700111bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700112 name: "soong-cc",
113 pkgPath: "android/soong/cc",
114 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800115 "blueprint",
116 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700117 "soong",
Colin Cross3f40fa42015-01-30 17:27:36 -0800118 "soong-common",
Colin Cross5049f022015-03-18 13:28:46 -0700119 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800120 ],
Colin Crossba442872015-03-14 14:26:32 -0700121 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700122 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800123 "cc/builder.go",
124 "cc/cc.go",
125 "cc/clang.go",
Colin Cross581c1892015-04-07 16:50:10 -0700126 "cc/gen.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800127 "cc/toolchain.go",
128 "cc/util.go",
129
130 "cc/arm_device.go",
131 "cc/arm64_device.go",
Colin Cross023f1e82015-11-23 16:15:10 -0800132 "cc/mips_device.go",
Colin Cross3b336c22015-11-23 16:28:31 -0800133 "cc/mips64_device.go",
Colin Crossb0cba6a2015-11-20 15:35:26 -0800134 "cc/x86_device.go",
Colin Cross6371b382015-11-23 14:53:57 -0800135 "cc/x86_64_device.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800136
Colin Cross0af4b842015-04-30 16:36:18 -0700137 "cc/x86_darwin_host.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800138 "cc/x86_linux_host.go",
Dan Willemsen490fd492015-11-24 17:53:15 -0800139 "cc/x86_windows_host.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800140 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700141 testSrcs: [
142 "cc/cc_test.go",
143 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700144 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700145}
Colin Cross3f40fa42015-01-30 17:27:36 -0800146
Colin Cross5049f022015-03-18 13:28:46 -0700147bootstrap_go_package {
148 name: "soong-genrule",
149 pkgPath: "android/soong/genrule",
150 deps: [
151 "blueprint",
152 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700153 "soong",
Colin Cross5049f022015-03-18 13:28:46 -0700154 "soong-common",
Colin Cross5049f022015-03-18 13:28:46 -0700155 ],
156 srcs: [
157 "genrule/genrule.go",
158 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700159 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700160}
Colin Cross2fe66872015-03-30 17:20:39 -0700161
162bootstrap_go_binary {
163 name: "soong_jar",
164 srcs: [
165 "cmd/soong_jar/soong_jar.go",
166 ],
167}
168
169bootstrap_go_package {
170 name: "soong-java",
171 pkgPath: "android/soong/java",
172 deps: [
173 "blueprint",
174 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700175 "soong",
Colin Cross2fe66872015-03-30 17:20:39 -0700176 "soong-common",
Colin Cross0607cf72015-04-28 13:28:51 -0700177 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700178 ],
179 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700180 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700181 "java/app_builder.go",
182 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700183 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700184 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700185 "java/java.go",
186 "java/resources.go",
187 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700188 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700189}
190
Colin Cross80031312015-03-14 14:28:22 -0700191//
192// androidmk Android.mk to Blueprints translator
193//
194
195bootstrap_go_binary {
196 name: "androidmk",
197 srcs: [
198 "androidmk/cmd/androidmk/android.go",
199 "androidmk/cmd/androidmk/androidmk.go",
200 "androidmk/cmd/androidmk/values.go",
201 ],
202 deps: [
203 "androidmk-parser",
204 "blueprint-parser",
205 ],
206}
207
208bootstrap_go_package {
209 name: "androidmk-parser",
210 pkgPath: "android/soong/androidmk/parser",
211 srcs: [
212 "androidmk/parser/make_strings.go",
213 "androidmk/parser/makething.go",
214 "androidmk/parser/parser.go",
215 "androidmk/parser/scope.go",
216 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700217 testSrcs: [
218 "androidmk/parser/make_strings_test.go",
219 ],
Colin Cross80031312015-03-14 14:28:22 -0700220}
221
222//
223// C static libraries extracted from the gcc toolchain
224//
225
Colin Crossba442872015-03-14 14:26:32 -0700226toolchain_library {
227 name: "libatomic",
Dan Willemseneba363e2015-07-08 18:11:14 -0700228 arch: {
229 arm: {
230 instruction_set: "arm",
231 },
232 },
Colin Crossba442872015-03-14 14:26:32 -0700233}
Colin Cross3f40fa42015-01-30 17:27:36 -0800234
Colin Crossba442872015-03-14 14:26:32 -0700235toolchain_library {
236 name: "libgcc",
Dan Willemseneba363e2015-07-08 18:11:14 -0700237 arch: {
238 arm: {
239 instruction_set: "arm",
240 },
241 },
Colin Crossba442872015-03-14 14:26:32 -0700242}
Colin Cross3f40fa42015-01-30 17:27:36 -0800243
Colin Crossba442872015-03-14 14:26:32 -0700244toolchain_library {
245 name: "libgcov",
Dan Willemseneba363e2015-07-08 18:11:14 -0700246 arch: {
247 arm: {
248 instruction_set: "arm",
249 },
250 },
Colin Crossba442872015-03-14 14:26:32 -0700251}