blob: 404c478769af2e05e8ab10893d24db3cdfc953fe [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 Cross82df9432015-03-24 11:16:06 -070019 "soong-art",
Colin Cross3f40fa42015-01-30 17:27:36 -080020 "soong-cc",
21 "soong-common",
Colin Cross68f55102015-03-25 14:43:57 -070022 "soong-env",
Colin Cross5049f022015-03-18 13:28:46 -070023 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -070024 "soong-java",
Colin Cross3f40fa42015-01-30 17:27:36 -080025 ],
Colin Crossba442872015-03-14 14:26:32 -070026 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080027 "cmd/soong_build/main.go",
28 ],
Colin Crossba442872015-03-14 14:26:32 -070029 primaryBuilder: true,
30}
Colin Cross3f40fa42015-01-30 17:27:36 -080031
Colin Crossba442872015-03-14 14:26:32 -070032bootstrap_go_binary {
Colin Cross68f55102015-03-25 14:43:57 -070033 name: "soong_env",
34 deps: [
35 "soong-env",
36 ],
37 srcs: [
38 "cmd/soong_env/soong_env.go",
39 ],
40}
41
42bootstrap_go_package {
43 name: "soong-env",
44 pkgPath: "android/soong/env",
45 srcs: [
46 "env/env.go",
47 ],
48}
49
50
51bootstrap_go_binary {
Colin Crossba442872015-03-14 14:26:32 -070052 name: "soong_glob",
53 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080054 "soong-glob",
55 ],
Colin Crossba442872015-03-14 14:26:32 -070056 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080057 "cmd/soong_glob/soong_glob.go",
58 ],
Colin Crossba442872015-03-14 14:26:32 -070059}
Colin Cross3f40fa42015-01-30 17:27:36 -080060
Colin Crossba442872015-03-14 14:26:32 -070061bootstrap_go_package {
62 name: "soong-glob",
63 pkgPath: "android/soong/glob",
64 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080065 "blueprint-deptools",
Colin Cross6f23ef62015-04-24 15:12:39 -070066 "blueprint-pathtools",
Colin Cross3f40fa42015-01-30 17:27:36 -080067 ],
Colin Crossba442872015-03-14 14:26:32 -070068 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080069 "glob/glob.go",
70 ],
Colin Crossba442872015-03-14 14:26:32 -070071}
Colin Cross3f40fa42015-01-30 17:27:36 -080072
Colin Crossba442872015-03-14 14:26:32 -070073bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070074 name: "soong",
75 pkgPath: "android/soong",
76 deps: [
77 "blueprint",
78 ],
79 srcs: [
80 "doc.go",
81 "register.go",
82 ],
83}
84
85bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -070086 name: "soong-common",
87 pkgPath: "android/soong/common",
88 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080089 "blueprint",
90 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070091 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070092 "soong-env",
Colin Crossba442872015-03-14 14:26:32 -070093 "soong-glob",
Colin Cross3f40fa42015-01-30 17:27:36 -080094 ],
Colin Crossba442872015-03-14 14:26:32 -070095 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080096 "common/arch.go",
Colin Cross1332b002015-04-07 17:11:30 -070097 "common/config.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080098 "common/defs.go",
Colin Cross68f55102015-03-25 14:43:57 -070099 "common/env.go",
Colin Cross7f64b6d2015-07-09 13:57:48 -0700100 "common/extend.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800101 "common/glob.go",
102 "common/module.go",
103 "common/paths.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700104 "common/util.go",
Colin Cross7f64b6d2015-07-09 13:57:48 -0700105 "common/variable.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800106 ],
Colin Crossba442872015-03-14 14:26:32 -0700107}
Colin Cross3f40fa42015-01-30 17:27:36 -0800108
Colin Crossba442872015-03-14 14:26:32 -0700109bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700110 name: "soong-cc",
111 pkgPath: "android/soong/cc",
112 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800113 "blueprint",
114 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700115 "soong",
Colin Cross3f40fa42015-01-30 17:27:36 -0800116 "soong-common",
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: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800120 "cc/builder.go",
121 "cc/cc.go",
122 "cc/clang.go",
Colin Cross581c1892015-04-07 16:50:10 -0700123 "cc/gen.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800124 "cc/toolchain.go",
125 "cc/util.go",
126
127 "cc/arm_device.go",
128 "cc/arm64_device.go",
129
Colin Cross0af4b842015-04-30 16:36:18 -0700130 "cc/x86_darwin_host.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800131 "cc/x86_linux_host.go",
132 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700133 testSrcs: [
134 "cc/cc_test.go",
135 ],
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 ],
150}
Colin Cross2fe66872015-03-30 17:20:39 -0700151
152bootstrap_go_binary {
153 name: "soong_jar",
154 srcs: [
155 "cmd/soong_jar/soong_jar.go",
156 ],
157}
158
159bootstrap_go_package {
160 name: "soong-java",
161 pkgPath: "android/soong/java",
162 deps: [
163 "blueprint",
164 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700165 "soong",
Colin Cross2fe66872015-03-30 17:20:39 -0700166 "soong-common",
Colin Cross0607cf72015-04-28 13:28:51 -0700167 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700168 ],
169 srcs: [
Colin Cross30e076a2015-04-13 13:58:27 -0700170 "java/app_builder.go",
171 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700172 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700173 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700174 "java/java.go",
175 "java/resources.go",
176 ],
177}
178
Colin Cross80031312015-03-14 14:28:22 -0700179//
180// androidmk Android.mk to Blueprints translator
181//
182
183bootstrap_go_binary {
184 name: "androidmk",
185 srcs: [
186 "androidmk/cmd/androidmk/android.go",
187 "androidmk/cmd/androidmk/androidmk.go",
188 "androidmk/cmd/androidmk/values.go",
189 ],
190 deps: [
191 "androidmk-parser",
192 "blueprint-parser",
193 ],
194}
195
196bootstrap_go_package {
197 name: "androidmk-parser",
198 pkgPath: "android/soong/androidmk/parser",
199 srcs: [
200 "androidmk/parser/make_strings.go",
201 "androidmk/parser/makething.go",
202 "androidmk/parser/parser.go",
203 "androidmk/parser/scope.go",
204 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700205 testSrcs: [
206 "androidmk/parser/make_strings_test.go",
207 ],
Colin Cross80031312015-03-14 14:28:22 -0700208}
209
Andres Moralesda8706f2015-04-29 12:46:49 -0700210bootstrap_go_binary {
211 name: "androidbp",
212 srcs: [
213 "androidbp/cmd/androidbp.go",
214 "androidbp/cmd/soong.go",
Dan Willemsen27012122015-06-26 17:40:54 -0700215 "androidbp/cmd/module.go",
Andres Moralesda8706f2015-04-29 12:46:49 -0700216 ],
Dan Willemsenf33877b2015-06-23 23:34:49 -0700217 testSrcs: [
218 "androidbp/cmd/androidbp_test.go",
219 ],
Andres Moralesda8706f2015-04-29 12:46:49 -0700220 deps: [
Colin Crossb3245e92015-06-30 16:27:57 -0700221 "blueprint",
Andres Moralesda8706f2015-04-29 12:46:49 -0700222 "blueprint-parser",
223 ],
224}
225
Colin Cross80031312015-03-14 14:28:22 -0700226//
227// C static libraries extracted from the gcc toolchain
228//
229
Colin Crossba442872015-03-14 14:26:32 -0700230toolchain_library {
231 name: "libatomic",
Dan Willemseneba363e2015-07-08 18:11:14 -0700232 arch: {
233 arm: {
234 instruction_set: "arm",
235 },
236 },
Colin Crossba442872015-03-14 14:26:32 -0700237}
Colin Cross3f40fa42015-01-30 17:27:36 -0800238
Colin Crossba442872015-03-14 14:26:32 -0700239toolchain_library {
240 name: "libgcc",
Dan Willemseneba363e2015-07-08 18:11:14 -0700241 arch: {
242 arm: {
243 instruction_set: "arm",
244 },
245 },
Colin Crossba442872015-03-14 14:26:32 -0700246}
Colin Cross3f40fa42015-01-30 17:27:36 -0800247
Colin Crossba442872015-03-14 14:26:32 -0700248toolchain_library {
249 name: "libgcov",
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}