blob: b8db146bcd224af77060ef5314ab78d0a7e73261 [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: [
Colin Cross3f40fa42015-01-30 17:27:36 -080092 "common/arch.go",
Colin Cross1332b002015-04-07 17:11:30 -070093 "common/config.go",
Colin Crosscfad1192015-11-02 16:43:11 -080094 "common/defaults.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080095 "common/defs.go",
Colin Cross68f55102015-03-25 14:43:57 -070096 "common/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080097 "common/glob.go",
98 "common/module.go",
Colin Cross6362e272015-10-29 15:25:03 -070099 "common/mutator.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800100 "common/paths.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700101 "common/util.go",
Colin Cross7f64b6d2015-07-09 13:57:48 -0700102 "common/variable.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800103 ],
Colin Crossba442872015-03-14 14:26:32 -0700104}
Colin Cross3f40fa42015-01-30 17:27:36 -0800105
Colin Crossba442872015-03-14 14:26:32 -0700106bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700107 name: "soong-cc",
108 pkgPath: "android/soong/cc",
109 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800110 "blueprint",
111 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700112 "soong",
Colin Cross3f40fa42015-01-30 17:27:36 -0800113 "soong-common",
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: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800117 "cc/builder.go",
118 "cc/cc.go",
119 "cc/clang.go",
Colin Cross581c1892015-04-07 16:50:10 -0700120 "cc/gen.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800121 "cc/toolchain.go",
122 "cc/util.go",
123
124 "cc/arm_device.go",
125 "cc/arm64_device.go",
Colin Crossb0cba6a2015-11-20 15:35:26 -0800126 "cc/x86_device.go",
Colin Cross6371b382015-11-23 14:53:57 -0800127 "cc/x86_64_device.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800128
Colin Cross0af4b842015-04-30 16:36:18 -0700129 "cc/x86_darwin_host.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800130 "cc/x86_linux_host.go",
131 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700132 testSrcs: [
133 "cc/cc_test.go",
134 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700135 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700136}
Colin Cross3f40fa42015-01-30 17:27:36 -0800137
Colin Cross5049f022015-03-18 13:28:46 -0700138bootstrap_go_package {
139 name: "soong-genrule",
140 pkgPath: "android/soong/genrule",
141 deps: [
142 "blueprint",
143 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700144 "soong",
Colin Cross5049f022015-03-18 13:28:46 -0700145 "soong-common",
Colin Cross5049f022015-03-18 13:28:46 -0700146 ],
147 srcs: [
148 "genrule/genrule.go",
149 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700150 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700151}
Colin Cross2fe66872015-03-30 17:20:39 -0700152
153bootstrap_go_binary {
154 name: "soong_jar",
155 srcs: [
156 "cmd/soong_jar/soong_jar.go",
157 ],
158}
159
160bootstrap_go_package {
161 name: "soong-java",
162 pkgPath: "android/soong/java",
163 deps: [
164 "blueprint",
165 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700166 "soong",
Colin Cross2fe66872015-03-30 17:20:39 -0700167 "soong-common",
Colin Cross0607cf72015-04-28 13:28:51 -0700168 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700169 ],
170 srcs: [
Colin Cross30e076a2015-04-13 13:58:27 -0700171 "java/app_builder.go",
172 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700173 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700174 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700175 "java/java.go",
176 "java/resources.go",
177 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700178 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700179}
180
Colin Cross80031312015-03-14 14:28:22 -0700181//
182// androidmk Android.mk to Blueprints translator
183//
184
185bootstrap_go_binary {
186 name: "androidmk",
187 srcs: [
188 "androidmk/cmd/androidmk/android.go",
189 "androidmk/cmd/androidmk/androidmk.go",
190 "androidmk/cmd/androidmk/values.go",
191 ],
192 deps: [
193 "androidmk-parser",
194 "blueprint-parser",
195 ],
196}
197
198bootstrap_go_package {
199 name: "androidmk-parser",
200 pkgPath: "android/soong/androidmk/parser",
201 srcs: [
202 "androidmk/parser/make_strings.go",
203 "androidmk/parser/makething.go",
204 "androidmk/parser/parser.go",
205 "androidmk/parser/scope.go",
206 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700207 testSrcs: [
208 "androidmk/parser/make_strings_test.go",
209 ],
Colin Cross80031312015-03-14 14:28:22 -0700210}
211
212//
213// C static libraries extracted from the gcc toolchain
214//
215
Colin Crossba442872015-03-14 14:26:32 -0700216toolchain_library {
217 name: "libatomic",
Dan Willemseneba363e2015-07-08 18:11:14 -0700218 arch: {
219 arm: {
220 instruction_set: "arm",
221 },
222 },
Colin Crossba442872015-03-14 14:26:32 -0700223}
Colin Cross3f40fa42015-01-30 17:27:36 -0800224
Colin Crossba442872015-03-14 14:26:32 -0700225toolchain_library {
226 name: "libgcc",
Dan Willemseneba363e2015-07-08 18:11:14 -0700227 arch: {
228 arm: {
229 instruction_set: "arm",
230 },
231 },
Colin Crossba442872015-03-14 14:26:32 -0700232}
Colin Cross3f40fa42015-01-30 17:27:36 -0800233
Colin Crossba442872015-03-14 14:26:32 -0700234toolchain_library {
235 name: "libgcov",
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}