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 | 82df943 | 2015-03-24 11:16:06 -0700 | [diff] [blame] | 19 | "soong-art", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 20 | "soong-cc", |
| 21 | "soong-common", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 22 | "soong-env", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 23 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 24 | "soong-java", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 25 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 26 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 27 | "cmd/soong_build/main.go", |
| 28 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 29 | primaryBuilder: true, |
| 30 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 31 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 32 | bootstrap_go_binary { |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 33 | name: "soong_env", |
| 34 | deps: [ |
| 35 | "soong-env", |
| 36 | ], |
| 37 | srcs: [ |
| 38 | "cmd/soong_env/soong_env.go", |
| 39 | ], |
| 40 | } |
| 41 | |
| 42 | bootstrap_go_package { |
| 43 | name: "soong-env", |
| 44 | pkgPath: "android/soong/env", |
| 45 | srcs: [ |
| 46 | "env/env.go", |
| 47 | ], |
| 48 | } |
| 49 | |
| 50 | |
| 51 | bootstrap_go_binary { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 52 | name: "soong_glob", |
| 53 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 54 | "soong-glob", |
| 55 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 56 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 57 | "cmd/soong_glob/soong_glob.go", |
| 58 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 59 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 60 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 61 | bootstrap_go_package { |
| 62 | name: "soong-glob", |
| 63 | pkgPath: "android/soong/glob", |
| 64 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 65 | "blueprint-deptools", |
Colin Cross | 6f23ef6 | 2015-04-24 15:12:39 -0700 | [diff] [blame] | 66 | "blueprint-pathtools", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 67 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 68 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 69 | "glob/glob.go", |
| 70 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 71 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 72 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 73 | bootstrap_go_package { |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 74 | name: "soong", |
| 75 | pkgPath: "android/soong", |
| 76 | deps: [ |
| 77 | "blueprint", |
| 78 | ], |
| 79 | srcs: [ |
| 80 | "doc.go", |
| 81 | "register.go", |
| 82 | ], |
| 83 | } |
| 84 | |
| 85 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 86 | name: "soong-common", |
| 87 | pkgPath: "android/soong/common", |
| 88 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 89 | "blueprint", |
| 90 | "blueprint-bootstrap", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 91 | "soong", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 92 | "soong-env", |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 93 | "soong-glob", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 94 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 95 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 96 | "common/arch.go", |
Colin Cross | 1332b00 | 2015-04-07 17:11:30 -0700 | [diff] [blame] | 97 | "common/config.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 98 | "common/defs.go", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 99 | "common/env.go", |
Colin Cross | 7f64b6d | 2015-07-09 13:57:48 -0700 | [diff] [blame^] | 100 | "common/extend.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 101 | "common/glob.go", |
| 102 | "common/module.go", |
| 103 | "common/paths.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 104 | "common/util.go", |
Colin Cross | 7f64b6d | 2015-07-09 13:57:48 -0700 | [diff] [blame^] | 105 | "common/variable.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 106 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 107 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 108 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 109 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 110 | name: "soong-cc", |
| 111 | pkgPath: "android/soong/cc", |
| 112 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 113 | "blueprint", |
| 114 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 115 | "soong", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 116 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 117 | "soong-genrule", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 118 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 119 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 120 | "cc/builder.go", |
| 121 | "cc/cc.go", |
| 122 | "cc/clang.go", |
Colin Cross | 581c189 | 2015-04-07 16:50:10 -0700 | [diff] [blame] | 123 | "cc/gen.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 124 | "cc/toolchain.go", |
| 125 | "cc/util.go", |
| 126 | |
| 127 | "cc/arm_device.go", |
| 128 | "cc/arm64_device.go", |
| 129 | |
Colin Cross | 0af4b84 | 2015-04-30 16:36:18 -0700 | [diff] [blame] | 130 | "cc/x86_darwin_host.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 131 | "cc/x86_linux_host.go", |
| 132 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 133 | testSrcs: [ |
| 134 | "cc/cc_test.go", |
| 135 | ], |
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 | ], |
| 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 | ], |
| 177 | } |
| 178 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 179 | // |
| 180 | // androidmk Android.mk to Blueprints translator |
| 181 | // |
| 182 | |
| 183 | bootstrap_go_binary { |
| 184 | name: "androidmk", |
| 185 | srcs: [ |
| 186 | "androidmk/cmd/androidmk/android.go", |
| 187 | "androidmk/cmd/androidmk/androidmk.go", |
| 188 | "androidmk/cmd/androidmk/values.go", |
| 189 | ], |
| 190 | deps: [ |
| 191 | "androidmk-parser", |
| 192 | "blueprint-parser", |
| 193 | ], |
| 194 | } |
| 195 | |
| 196 | bootstrap_go_package { |
| 197 | name: "androidmk-parser", |
| 198 | pkgPath: "android/soong/androidmk/parser", |
| 199 | srcs: [ |
| 200 | "androidmk/parser/make_strings.go", |
| 201 | "androidmk/parser/makething.go", |
| 202 | "androidmk/parser/parser.go", |
| 203 | "androidmk/parser/scope.go", |
| 204 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 205 | testSrcs: [ |
| 206 | "androidmk/parser/make_strings_test.go", |
| 207 | ], |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 208 | } |
| 209 | |
Andres Morales | da8706f | 2015-04-29 12:46:49 -0700 | [diff] [blame] | 210 | bootstrap_go_binary { |
| 211 | name: "androidbp", |
| 212 | srcs: [ |
| 213 | "androidbp/cmd/androidbp.go", |
| 214 | "androidbp/cmd/soong.go", |
Dan Willemsen | 2701212 | 2015-06-26 17:40:54 -0700 | [diff] [blame] | 215 | "androidbp/cmd/module.go", |
Andres Morales | da8706f | 2015-04-29 12:46:49 -0700 | [diff] [blame] | 216 | ], |
Dan Willemsen | f33877b | 2015-06-23 23:34:49 -0700 | [diff] [blame] | 217 | testSrcs: [ |
| 218 | "androidbp/cmd/androidbp_test.go", |
| 219 | ], |
Andres Morales | da8706f | 2015-04-29 12:46:49 -0700 | [diff] [blame] | 220 | deps: [ |
Colin Cross | b3245e9 | 2015-06-30 16:27:57 -0700 | [diff] [blame] | 221 | "blueprint", |
Andres Morales | da8706f | 2015-04-29 12:46:49 -0700 | [diff] [blame] | 222 | "blueprint-parser", |
| 223 | ], |
| 224 | } |
| 225 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 226 | // |
| 227 | // C static libraries extracted from the gcc toolchain |
| 228 | // |
| 229 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 230 | toolchain_library { |
| 231 | name: "libatomic", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 232 | arch: { |
| 233 | arm: { |
| 234 | instruction_set: "arm", |
| 235 | }, |
| 236 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 237 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 238 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 239 | toolchain_library { |
| 240 | name: "libgcc", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 241 | arch: { |
| 242 | arm: { |
| 243 | instruction_set: "arm", |
| 244 | }, |
| 245 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 246 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 247 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 248 | toolchain_library { |
| 249 | name: "libgcov", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 250 | arch: { |
| 251 | arm: { |
| 252 | instruction_set: "arm", |
| 253 | }, |
| 254 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 255 | } |