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 | 6371b38 | 2015-11-23 14:53:57 -0800 | [diff] [blame^] | 127 | "cc/x86_64_device.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 128 | |
Colin Cross | 0af4b84 | 2015-04-30 16:36:18 -0700 | [diff] [blame] | 129 | "cc/x86_darwin_host.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 130 | "cc/x86_linux_host.go", |
| 131 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 132 | testSrcs: [ |
| 133 | "cc/cc_test.go", |
| 134 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 135 | pluginFor: ["soong_build"], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 136 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 137 | |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 138 | bootstrap_go_package { |
| 139 | name: "soong-genrule", |
| 140 | pkgPath: "android/soong/genrule", |
| 141 | deps: [ |
| 142 | "blueprint", |
| 143 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 144 | "soong", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 145 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 146 | ], |
| 147 | srcs: [ |
| 148 | "genrule/genrule.go", |
| 149 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 150 | pluginFor: ["soong_build"], |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 151 | } |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 152 | |
| 153 | bootstrap_go_binary { |
| 154 | name: "soong_jar", |
| 155 | srcs: [ |
| 156 | "cmd/soong_jar/soong_jar.go", |
| 157 | ], |
| 158 | } |
| 159 | |
| 160 | bootstrap_go_package { |
| 161 | name: "soong-java", |
| 162 | pkgPath: "android/soong/java", |
| 163 | deps: [ |
| 164 | "blueprint", |
| 165 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 166 | "soong", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 167 | "soong-common", |
Colin Cross | 0607cf7 | 2015-04-28 13:28:51 -0700 | [diff] [blame] | 168 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 169 | ], |
| 170 | srcs: [ |
Colin Cross | 30e076a | 2015-04-13 13:58:27 -0700 | [diff] [blame] | 171 | "java/app_builder.go", |
| 172 | "java/app.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 173 | "java/builder.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 174 | "java/gen.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 175 | "java/java.go", |
| 176 | "java/resources.go", |
| 177 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 178 | pluginFor: ["soong_build"], |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 179 | } |
| 180 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 181 | // |
| 182 | // androidmk Android.mk to Blueprints translator |
| 183 | // |
| 184 | |
| 185 | bootstrap_go_binary { |
| 186 | name: "androidmk", |
| 187 | srcs: [ |
| 188 | "androidmk/cmd/androidmk/android.go", |
| 189 | "androidmk/cmd/androidmk/androidmk.go", |
| 190 | "androidmk/cmd/androidmk/values.go", |
| 191 | ], |
| 192 | deps: [ |
| 193 | "androidmk-parser", |
| 194 | "blueprint-parser", |
| 195 | ], |
| 196 | } |
| 197 | |
| 198 | bootstrap_go_package { |
| 199 | name: "androidmk-parser", |
| 200 | pkgPath: "android/soong/androidmk/parser", |
| 201 | srcs: [ |
| 202 | "androidmk/parser/make_strings.go", |
| 203 | "androidmk/parser/makething.go", |
| 204 | "androidmk/parser/parser.go", |
| 205 | "androidmk/parser/scope.go", |
| 206 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 207 | testSrcs: [ |
| 208 | "androidmk/parser/make_strings_test.go", |
| 209 | ], |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 210 | } |
| 211 | |
| 212 | // |
| 213 | // C static libraries extracted from the gcc toolchain |
| 214 | // |
| 215 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 216 | toolchain_library { |
| 217 | name: "libatomic", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 218 | arch: { |
| 219 | arm: { |
| 220 | instruction_set: "arm", |
| 221 | }, |
| 222 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 223 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 224 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 225 | toolchain_library { |
| 226 | name: "libgcc", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 227 | arch: { |
| 228 | arm: { |
| 229 | instruction_set: "arm", |
| 230 | }, |
| 231 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 232 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 233 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 234 | toolchain_library { |
| 235 | name: "libgcov", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 236 | arch: { |
| 237 | arm: { |
| 238 | instruction_set: "arm", |
| 239 | }, |
| 240 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 241 | } |