blob: 958c79e421287e98370b0b3e0011e4aabb141cb6 [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 Cross82df9432015-03-24 11:16:06 -070018 "soong-art",
Colin Cross3f40fa42015-01-30 17:27:36 -080019 "soong-cc",
20 "soong-common",
Colin Cross68f55102015-03-25 14:43:57 -070021 "soong-env",
Colin Cross5049f022015-03-18 13:28:46 -070022 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -070023 "soong-java",
Colin Cross3f40fa42015-01-30 17:27:36 -080024 ],
Colin Crossba442872015-03-14 14:26:32 -070025 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080026 "cmd/soong_build/main.go",
27 ],
Colin Crossba442872015-03-14 14:26:32 -070028 primaryBuilder: true,
29}
Colin Cross3f40fa42015-01-30 17:27:36 -080030
Colin Crossba442872015-03-14 14:26:32 -070031bootstrap_go_binary {
Colin Cross68f55102015-03-25 14:43:57 -070032 name: "soong_env",
33 deps: [
34 "soong-env",
35 ],
36 srcs: [
37 "cmd/soong_env/soong_env.go",
38 ],
39}
40
41bootstrap_go_package {
42 name: "soong-env",
43 pkgPath: "android/soong/env",
44 srcs: [
45 "env/env.go",
46 ],
47}
48
49
50bootstrap_go_binary {
Colin Crossba442872015-03-14 14:26:32 -070051 name: "soong_glob",
52 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080053 "soong-glob",
54 ],
Colin Crossba442872015-03-14 14:26:32 -070055 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080056 "cmd/soong_glob/soong_glob.go",
57 ],
Colin Crossba442872015-03-14 14:26:32 -070058}
Colin Cross3f40fa42015-01-30 17:27:36 -080059
Colin Crossba442872015-03-14 14:26:32 -070060bootstrap_go_package {
61 name: "soong-glob",
62 pkgPath: "android/soong/glob",
63 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080064 "blueprint-deptools",
Colin Cross6f23ef62015-04-24 15:12:39 -070065 "blueprint-pathtools",
Colin Cross3f40fa42015-01-30 17:27:36 -080066 ],
Colin Crossba442872015-03-14 14:26:32 -070067 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080068 "glob/glob.go",
69 ],
Colin Crossba442872015-03-14 14:26:32 -070070}
Colin Cross3f40fa42015-01-30 17:27:36 -080071
Colin Crossba442872015-03-14 14:26:32 -070072bootstrap_go_package {
73 name: "soong-common",
74 pkgPath: "android/soong/common",
75 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080076 "blueprint",
77 "blueprint-bootstrap",
Colin Cross68f55102015-03-25 14:43:57 -070078 "soong-env",
Colin Crossba442872015-03-14 14:26:32 -070079 "soong-glob",
Colin Cross3f40fa42015-01-30 17:27:36 -080080 ],
Colin Crossba442872015-03-14 14:26:32 -070081 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080082 "common/arch.go",
Colin Cross9454bfa2015-03-17 13:24:18 -070083 "common/checkbuild.go",
Colin Cross1332b002015-04-07 17:11:30 -070084 "common/config.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080085 "common/defs.go",
Colin Cross68f55102015-03-25 14:43:57 -070086 "common/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080087 "common/glob.go",
88 "common/module.go",
89 "common/paths.go",
Colin Crossc0b06f12015-04-08 13:03:43 -070090 "common/util.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080091 ],
Colin Crossba442872015-03-14 14:26:32 -070092}
Colin Cross3f40fa42015-01-30 17:27:36 -080093
Colin Crossba442872015-03-14 14:26:32 -070094bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -070095 name: "soong-cc",
96 pkgPath: "android/soong/cc",
97 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080098 "blueprint",
99 "blueprint-pathtools",
100 "soong-common",
Colin Cross5049f022015-03-18 13:28:46 -0700101 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800102 ],
Colin Crossba442872015-03-14 14:26:32 -0700103 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800104 "cc/builder.go",
105 "cc/cc.go",
106 "cc/clang.go",
Colin Cross581c1892015-04-07 16:50:10 -0700107 "cc/gen.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800108 "cc/toolchain.go",
109 "cc/util.go",
110
111 "cc/arm_device.go",
112 "cc/arm64_device.go",
113
114 "cc/x86_linux_host.go",
115 ],
Colin Crossba442872015-03-14 14:26:32 -0700116}
Colin Cross3f40fa42015-01-30 17:27:36 -0800117
Colin Cross5049f022015-03-18 13:28:46 -0700118bootstrap_go_package {
119 name: "soong-genrule",
120 pkgPath: "android/soong/genrule",
121 deps: [
122 "blueprint",
123 "blueprint-pathtools",
124 "soong-common",
Colin Cross5049f022015-03-18 13:28:46 -0700125 ],
126 srcs: [
127 "genrule/genrule.go",
128 ],
129}
Colin Cross2fe66872015-03-30 17:20:39 -0700130
131bootstrap_go_binary {
132 name: "soong_jar",
133 srcs: [
134 "cmd/soong_jar/soong_jar.go",
135 ],
136}
137
138bootstrap_go_package {
139 name: "soong-java",
140 pkgPath: "android/soong/java",
141 deps: [
142 "blueprint",
143 "blueprint-pathtools",
144 "soong-common",
Colin Cross0607cf72015-04-28 13:28:51 -0700145 "soong-genrule",
Colin Cross2fe66872015-03-30 17:20:39 -0700146 ],
147 srcs: [
Colin Cross30e076a2015-04-13 13:58:27 -0700148 "java/app_builder.go",
149 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700150 "java/builder.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700151 "java/gen.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700152 "java/java.go",
153 "java/resources.go",
154 ],
155}
156
Colin Cross80031312015-03-14 14:28:22 -0700157//
158// androidmk Android.mk to Blueprints translator
159//
160
161bootstrap_go_binary {
162 name: "androidmk",
163 srcs: [
164 "androidmk/cmd/androidmk/android.go",
165 "androidmk/cmd/androidmk/androidmk.go",
166 "androidmk/cmd/androidmk/values.go",
167 ],
168 deps: [
169 "androidmk-parser",
170 "blueprint-parser",
171 ],
172}
173
174bootstrap_go_package {
175 name: "androidmk-parser",
176 pkgPath: "android/soong/androidmk/parser",
177 srcs: [
178 "androidmk/parser/make_strings.go",
179 "androidmk/parser/makething.go",
180 "androidmk/parser/parser.go",
181 "androidmk/parser/scope.go",
182 ],
183}
184
185//
186// C static libraries extracted from the gcc toolchain
187//
188
Colin Crossba442872015-03-14 14:26:32 -0700189toolchain_library {
190 name: "libatomic",
191}
Colin Cross3f40fa42015-01-30 17:27:36 -0800192
Colin Crossba442872015-03-14 14:26:32 -0700193toolchain_library {
194 name: "libgcc",
195}
Colin Cross3f40fa42015-01-30 17:27:36 -0800196
Colin Crossba442872015-03-14 14:26:32 -0700197toolchain_library {
198 name: "libgcov",
199}