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: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 92 | "common/arch.go", |
Colin Cross | 1332b00 | 2015-04-07 17:11:30 -0700 | [diff] [blame] | 93 | "common/config.go", |
Colin Cross | cfad119 | 2015-11-02 16:43:11 -0800 | [diff] [blame] | 94 | "common/defaults.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 95 | "common/defs.go", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 96 | "common/env.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 97 | "common/glob.go", |
| 98 | "common/module.go", |
Colin Cross | 6362e27 | 2015-10-29 15:25:03 -0700 | [diff] [blame] | 99 | "common/mutator.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 100 | "common/paths.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 101 | "common/util.go", |
Colin Cross | 7f64b6d | 2015-07-09 13:57:48 -0700 | [diff] [blame] | 102 | "common/variable.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 103 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 104 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 105 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 106 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 107 | name: "soong-cc", |
| 108 | pkgPath: "android/soong/cc", |
| 109 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 110 | "blueprint", |
| 111 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 112 | "soong", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 113 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 114 | "soong-genrule", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 115 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 116 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 117 | "cc/builder.go", |
| 118 | "cc/cc.go", |
| 119 | "cc/clang.go", |
Colin Cross | 581c189 | 2015-04-07 16:50:10 -0700 | [diff] [blame] | 120 | "cc/gen.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 121 | "cc/toolchain.go", |
| 122 | "cc/util.go", |
| 123 | |
| 124 | "cc/arm_device.go", |
| 125 | "cc/arm64_device.go", |
Colin Cross | b0cba6a | 2015-11-20 15:35:26 -0800 | [diff] [blame^] | 126 | "cc/x86_device.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 127 | |
Colin Cross | 0af4b84 | 2015-04-30 16:36:18 -0700 | [diff] [blame] | 128 | "cc/x86_darwin_host.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 129 | "cc/x86_linux_host.go", |
| 130 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 131 | testSrcs: [ |
| 132 | "cc/cc_test.go", |
| 133 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 134 | pluginFor: ["soong_build"], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 135 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 136 | |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 137 | bootstrap_go_package { |
| 138 | name: "soong-genrule", |
| 139 | pkgPath: "android/soong/genrule", |
| 140 | deps: [ |
| 141 | "blueprint", |
| 142 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 143 | "soong", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 144 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 145 | ], |
| 146 | srcs: [ |
| 147 | "genrule/genrule.go", |
| 148 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 149 | pluginFor: ["soong_build"], |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 150 | } |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 151 | |
| 152 | bootstrap_go_binary { |
| 153 | name: "soong_jar", |
| 154 | srcs: [ |
| 155 | "cmd/soong_jar/soong_jar.go", |
| 156 | ], |
| 157 | } |
| 158 | |
| 159 | bootstrap_go_package { |
| 160 | name: "soong-java", |
| 161 | pkgPath: "android/soong/java", |
| 162 | deps: [ |
| 163 | "blueprint", |
| 164 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 165 | "soong", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 166 | "soong-common", |
Colin Cross | 0607cf7 | 2015-04-28 13:28:51 -0700 | [diff] [blame] | 167 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 168 | ], |
| 169 | srcs: [ |
Colin Cross | 30e076a | 2015-04-13 13:58:27 -0700 | [diff] [blame] | 170 | "java/app_builder.go", |
| 171 | "java/app.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 172 | "java/builder.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 173 | "java/gen.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 174 | "java/java.go", |
| 175 | "java/resources.go", |
| 176 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 177 | pluginFor: ["soong_build"], |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 178 | } |
| 179 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 180 | // |
| 181 | // androidmk Android.mk to Blueprints translator |
| 182 | // |
| 183 | |
| 184 | bootstrap_go_binary { |
| 185 | name: "androidmk", |
| 186 | srcs: [ |
| 187 | "androidmk/cmd/androidmk/android.go", |
| 188 | "androidmk/cmd/androidmk/androidmk.go", |
| 189 | "androidmk/cmd/androidmk/values.go", |
| 190 | ], |
| 191 | deps: [ |
| 192 | "androidmk-parser", |
| 193 | "blueprint-parser", |
| 194 | ], |
| 195 | } |
| 196 | |
| 197 | bootstrap_go_package { |
| 198 | name: "androidmk-parser", |
| 199 | pkgPath: "android/soong/androidmk/parser", |
| 200 | srcs: [ |
| 201 | "androidmk/parser/make_strings.go", |
| 202 | "androidmk/parser/makething.go", |
| 203 | "androidmk/parser/parser.go", |
| 204 | "androidmk/parser/scope.go", |
| 205 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 206 | testSrcs: [ |
| 207 | "androidmk/parser/make_strings_test.go", |
| 208 | ], |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 209 | } |
| 210 | |
| 211 | // |
| 212 | // C static libraries extracted from the gcc toolchain |
| 213 | // |
| 214 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 215 | toolchain_library { |
| 216 | name: "libatomic", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 217 | arch: { |
| 218 | arm: { |
| 219 | instruction_set: "arm", |
| 220 | }, |
| 221 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 222 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 223 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 224 | toolchain_library { |
| 225 | name: "libgcc", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 226 | arch: { |
| 227 | arm: { |
| 228 | instruction_set: "arm", |
| 229 | }, |
| 230 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 231 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 232 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 233 | toolchain_library { |
| 234 | name: "libgcov", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 235 | arch: { |
| 236 | arm: { |
| 237 | instruction_set: "arm", |
| 238 | }, |
| 239 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 240 | } |