blob: aee91236f41d6dcd9aeabf9fc528d1c21c51c2d9 [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",
17]
Colin Cross68f55102015-03-25 14:43:57 -070018
19bootstrap_go_package {
20 name: "soong-env",
21 pkgPath: "android/soong/env",
22 srcs: [
23 "env/env.go",
24 ],
25}
26
27
Colin Crossba442872015-03-14 14:26:32 -070028bootstrap_go_package {
29 name: "soong-glob",
30 pkgPath: "android/soong/glob",
31 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080032 "blueprint-deptools",
Colin Cross6f23ef62015-04-24 15:12:39 -070033 "blueprint-pathtools",
Colin Cross3f40fa42015-01-30 17:27:36 -080034 ],
Colin Crossba442872015-03-14 14:26:32 -070035 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080036 "glob/glob.go",
37 ],
Colin Crossba442872015-03-14 14:26:32 -070038}
Colin Cross3f40fa42015-01-30 17:27:36 -080039
Colin Crossba442872015-03-14 14:26:32 -070040bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070041 name: "soong",
42 pkgPath: "android/soong",
43 deps: [
44 "blueprint",
45 ],
46 srcs: [
47 "doc.go",
48 "register.go",
49 ],
50}
51
52bootstrap_go_package {
Colin Cross635c3b02016-05-18 15:37:25 -070053 name: "soong-android",
54 pkgPath: "android/soong/android",
Colin Crossba442872015-03-14 14:26:32 -070055 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080056 "blueprint",
57 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070058 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070059 "soong-env",
Colin Crossba442872015-03-14 14:26:32 -070060 "soong-glob",
Colin Cross3f40fa42015-01-30 17:27:36 -080061 ],
Colin Crossba442872015-03-14 14:26:32 -070062 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070063 "android/androidmk.go",
64 "android/arch.go",
65 "android/config.go",
66 "android/defaults.go",
67 "android/defs.go",
68 "android/glob.go",
Colin Cross178a5092016-09-13 13:42:32 -070069 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070070 "android/makevars.go",
71 "android/module.go",
72 "android/mutator.go",
Colin Cross9272ade2016-08-17 15:24:12 -070073 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070074 "android/package_ctx.go",
75 "android/paths.go",
76 "android/util.go",
77 "android/variable.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070078
79 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070080 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080081 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070082 testSrcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070083 "android/paths_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070084 ],
Colin Crossba442872015-03-14 14:26:32 -070085}
Colin Cross3f40fa42015-01-30 17:27:36 -080086
Colin Crossba442872015-03-14 14:26:32 -070087bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070088 name: "soong-cc-config",
89 pkgPath: "android/soong/cc/config",
90 deps: [
91 "soong-android",
92 ],
93 srcs: [
94 "cc/config/clang.go",
95 "cc/config/global.go",
96 "cc/config/toolchain.go",
97
98 "cc/config/arm_device.go",
99 "cc/config/arm64_device.go",
100 "cc/config/mips_device.go",
101 "cc/config/mips64_device.go",
102 "cc/config/x86_device.go",
103 "cc/config/x86_64_device.go",
104
105 "cc/config/x86_darwin_host.go",
106 "cc/config/x86_linux_host.go",
107 "cc/config/x86_windows_host.go",
108 ],
109}
110
111bootstrap_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 Cross635c3b02016-05-18 15:37:25 -0700118 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700119 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700120 "soong-genrule",
Colin Cross3f40fa42015-01-30 17:27:36 -0800121 ],
Colin Crossba442872015-03-14 14:26:32 -0700122 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700123 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800124 "cc/builder.go",
125 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700126 "cc/check.go",
Colin Cross581c1892015-04-07 16:50:10 -0700127 "cc/gen.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800128 "cc/makevars.go",
Colin Cross16b23492016-01-06 14:41:07 -0800129 "cc/sanitize.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800130 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700131 "cc/strip.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800132 "cc/util.go",
133
Colin Cross4d9c2d12016-07-29 12:48:20 -0700134 "cc/compiler.go",
135 "cc/installer.go",
136 "cc/linker.go",
137
138 "cc/binary.go",
139 "cc/library.go",
140 "cc/object.go",
141 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700142 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700143
144 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700145 "cc/ndk_headers.go",
146 "cc/ndk_library.go",
147 "cc/ndk_sysroot.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800148 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700149 testSrcs: [
150 "cc/cc_test.go",
151 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700152 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700153}
Colin Cross3f40fa42015-01-30 17:27:36 -0800154
Colin Cross5049f022015-03-18 13:28:46 -0700155bootstrap_go_package {
156 name: "soong-genrule",
157 pkgPath: "android/soong/genrule",
158 deps: [
159 "blueprint",
160 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700161 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700162 "soong-android",
Colin Cross5049f022015-03-18 13:28:46 -0700163 ],
164 srcs: [
165 "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//
Colin Cross80031312015-03-14 14:28:22 -0700193// C static libraries extracted from the gcc toolchain
194//
195
Colin Crossba442872015-03-14 14:26:32 -0700196toolchain_library {
197 name: "libatomic",
Dan Willemseneba363e2015-07-08 18:11:14 -0700198 arch: {
199 arm: {
200 instruction_set: "arm",
201 },
202 },
Colin Crossba442872015-03-14 14:26:32 -0700203}
Colin Cross3f40fa42015-01-30 17:27:36 -0800204
Colin Crossba442872015-03-14 14:26:32 -0700205toolchain_library {
206 name: "libgcc",
Dan Willemseneba363e2015-07-08 18:11:14 -0700207 arch: {
208 arm: {
209 instruction_set: "arm",
210 },
211 },
Colin Crossba442872015-03-14 14:26:32 -0700212}
Colin Cross3f40fa42015-01-30 17:27:36 -0800213
Colin Crossba442872015-03-14 14:26:32 -0700214toolchain_library {
215 name: "libgcov",
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}