Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 1 | // |
| 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 Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 13 | bootstrap_go_binary { |
| 14 | name: "soong_build", |
| 15 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 16 | "blueprint", |
| 17 | "blueprint-bootstrap", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 18 | "soong", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 19 | "soong-common", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 20 | "soong-env", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 21 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 22 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 23 | "cmd/soong_build/main.go", |
| 24 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 25 | primaryBuilder: true, |
| 26 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 27 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 28 | bootstrap_go_binary { |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 29 | name: "soong_env", |
| 30 | deps: [ |
| 31 | "soong-env", |
| 32 | ], |
| 33 | srcs: [ |
| 34 | "cmd/soong_env/soong_env.go", |
| 35 | ], |
| 36 | } |
| 37 | |
| 38 | bootstrap_go_package { |
| 39 | name: "soong-env", |
| 40 | pkgPath: "android/soong/env", |
| 41 | srcs: [ |
| 42 | "env/env.go", |
| 43 | ], |
| 44 | } |
| 45 | |
| 46 | |
| 47 | bootstrap_go_binary { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 48 | name: "soong_glob", |
| 49 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 50 | "soong-glob", |
| 51 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 52 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 53 | "cmd/soong_glob/soong_glob.go", |
| 54 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 55 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 56 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 57 | bootstrap_go_package { |
| 58 | name: "soong-glob", |
| 59 | pkgPath: "android/soong/glob", |
| 60 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 61 | "blueprint-deptools", |
Colin Cross | 6f23ef6 | 2015-04-24 15:12:39 -0700 | [diff] [blame] | 62 | "blueprint-pathtools", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 63 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 64 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 65 | "glob/glob.go", |
| 66 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 67 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 68 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 69 | bootstrap_go_package { |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 70 | name: "soong", |
| 71 | pkgPath: "android/soong", |
| 72 | deps: [ |
| 73 | "blueprint", |
| 74 | ], |
| 75 | srcs: [ |
| 76 | "doc.go", |
| 77 | "register.go", |
| 78 | ], |
| 79 | } |
| 80 | |
| 81 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 82 | name: "soong-common", |
| 83 | pkgPath: "android/soong/common", |
| 84 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 85 | "blueprint", |
| 86 | "blueprint-bootstrap", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 87 | "soong", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 88 | "soong-env", |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 89 | "soong-glob", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 90 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 91 | srcs: [ |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 92 | "common/androidmk.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 93 | "common/arch.go", |
Colin Cross | 1332b00 | 2015-04-07 17:11:30 -0700 | [diff] [blame] | 94 | "common/config.go", |
Colin Cross | cfad119 | 2015-11-02 16:43:11 -0800 | [diff] [blame] | 95 | "common/defaults.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 96 | "common/defs.go", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 97 | "common/env.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 98 | "common/glob.go", |
| 99 | "common/module.go", |
Colin Cross | 6362e27 | 2015-10-29 15:25:03 -0700 | [diff] [blame] | 100 | "common/mutator.go", |
Dan Willemsen | 34cc69e | 2015-09-23 15:26:20 -0700 | [diff] [blame] | 101 | "common/package_ctx.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 102 | "common/paths.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 103 | "common/util.go", |
Colin Cross | 7f64b6d | 2015-07-09 13:57:48 -0700 | [diff] [blame] | 104 | "common/variable.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 105 | ], |
Dan Willemsen | 34cc69e | 2015-09-23 15:26:20 -0700 | [diff] [blame] | 106 | testSrcs: [ |
| 107 | "common/paths_test.go", |
| 108 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 109 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 110 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 111 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 112 | name: "soong-cc", |
| 113 | pkgPath: "android/soong/cc", |
| 114 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 115 | "blueprint", |
| 116 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 117 | "soong", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 118 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 119 | "soong-genrule", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 120 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 121 | srcs: [ |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 122 | "cc/androidmk.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 123 | "cc/builder.go", |
| 124 | "cc/cc.go", |
| 125 | "cc/clang.go", |
Colin Cross | 581c189 | 2015-04-07 16:50:10 -0700 | [diff] [blame] | 126 | "cc/gen.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 127 | "cc/toolchain.go", |
| 128 | "cc/util.go", |
| 129 | |
| 130 | "cc/arm_device.go", |
| 131 | "cc/arm64_device.go", |
Colin Cross | 023f1e8 | 2015-11-23 16:15:10 -0800 | [diff] [blame] | 132 | "cc/mips_device.go", |
Colin Cross | 3b336c2 | 2015-11-23 16:28:31 -0800 | [diff] [blame] | 133 | "cc/mips64_device.go", |
Colin Cross | b0cba6a | 2015-11-20 15:35:26 -0800 | [diff] [blame] | 134 | "cc/x86_device.go", |
Colin Cross | 6371b38 | 2015-11-23 14:53:57 -0800 | [diff] [blame] | 135 | "cc/x86_64_device.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 136 | |
Colin Cross | 0af4b84 | 2015-04-30 16:36:18 -0700 | [diff] [blame] | 137 | "cc/x86_darwin_host.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 138 | "cc/x86_linux_host.go", |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 139 | "cc/x86_windows_host.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 140 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 141 | testSrcs: [ |
| 142 | "cc/cc_test.go", |
| 143 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 144 | pluginFor: ["soong_build"], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 145 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 146 | |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 147 | bootstrap_go_package { |
| 148 | name: "soong-genrule", |
| 149 | pkgPath: "android/soong/genrule", |
| 150 | deps: [ |
| 151 | "blueprint", |
| 152 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 153 | "soong", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 154 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 155 | ], |
| 156 | srcs: [ |
| 157 | "genrule/genrule.go", |
| 158 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 159 | pluginFor: ["soong_build"], |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 160 | } |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 161 | |
| 162 | bootstrap_go_binary { |
| 163 | name: "soong_jar", |
| 164 | srcs: [ |
| 165 | "cmd/soong_jar/soong_jar.go", |
| 166 | ], |
| 167 | } |
| 168 | |
| 169 | bootstrap_go_package { |
| 170 | name: "soong-java", |
| 171 | pkgPath: "android/soong/java", |
| 172 | deps: [ |
| 173 | "blueprint", |
| 174 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 175 | "soong", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 176 | "soong-common", |
Colin Cross | 0607cf7 | 2015-04-28 13:28:51 -0700 | [diff] [blame] | 177 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 178 | ], |
| 179 | srcs: [ |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 180 | "java/androidmk.go", |
Colin Cross | 30e076a | 2015-04-13 13:58:27 -0700 | [diff] [blame] | 181 | "java/app_builder.go", |
| 182 | "java/app.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 183 | "java/builder.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 184 | "java/gen.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 185 | "java/java.go", |
| 186 | "java/resources.go", |
| 187 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 188 | pluginFor: ["soong_build"], |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 189 | } |
| 190 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 191 | // |
| 192 | // androidmk Android.mk to Blueprints translator |
| 193 | // |
| 194 | |
| 195 | bootstrap_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 | |
| 208 | bootstrap_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 Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 217 | testSrcs: [ |
| 218 | "androidmk/parser/make_strings_test.go", |
| 219 | ], |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | // |
| 223 | // C static libraries extracted from the gcc toolchain |
| 224 | // |
| 225 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 226 | toolchain_library { |
| 227 | name: "libatomic", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 228 | arch: { |
| 229 | arm: { |
| 230 | instruction_set: "arm", |
| 231 | }, |
| 232 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 233 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 234 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 235 | toolchain_library { |
| 236 | name: "libgcc", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 237 | arch: { |
| 238 | arm: { |
| 239 | instruction_set: "arm", |
| 240 | }, |
| 241 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 242 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 243 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 244 | toolchain_library { |
| 245 | name: "libgcov", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 246 | arch: { |
| 247 | arm: { |
| 248 | instruction_set: "arm", |
| 249 | }, |
| 250 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 251 | } |