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 | 82df943 | 2015-03-24 11:16:06 -0700 | [diff] [blame] | 18 | "soong-art", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 19 | "soong-cc", |
| 20 | "soong-common", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 21 | "soong-env", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 22 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 23 | "soong-java", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 24 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 25 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 26 | "cmd/soong_build/main.go", |
| 27 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 28 | primaryBuilder: true, |
| 29 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 30 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 31 | bootstrap_go_binary { |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 32 | name: "soong_env", |
| 33 | deps: [ |
| 34 | "soong-env", |
| 35 | ], |
| 36 | srcs: [ |
| 37 | "cmd/soong_env/soong_env.go", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | bootstrap_go_package { |
| 42 | name: "soong-env", |
| 43 | pkgPath: "android/soong/env", |
| 44 | srcs: [ |
| 45 | "env/env.go", |
| 46 | ], |
| 47 | } |
| 48 | |
| 49 | |
| 50 | bootstrap_go_binary { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 51 | name: "soong_glob", |
| 52 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 53 | "soong-glob", |
| 54 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 55 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 56 | "cmd/soong_glob/soong_glob.go", |
| 57 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 58 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 59 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 60 | bootstrap_go_package { |
| 61 | name: "soong-glob", |
| 62 | pkgPath: "android/soong/glob", |
| 63 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 64 | "blueprint-deptools", |
Colin Cross | 6f23ef6 | 2015-04-24 15:12:39 -0700 | [diff] [blame^] | 65 | "blueprint-pathtools", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 66 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 67 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 68 | "glob/glob.go", |
| 69 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 70 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 71 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 72 | bootstrap_go_package { |
| 73 | name: "soong-common", |
| 74 | pkgPath: "android/soong/common", |
| 75 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 76 | "blueprint", |
| 77 | "blueprint-bootstrap", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 78 | "soong-env", |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 79 | "soong-glob", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 80 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 81 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 82 | "common/arch.go", |
Colin Cross | 9454bfa | 2015-03-17 13:24:18 -0700 | [diff] [blame] | 83 | "common/checkbuild.go", |
Colin Cross | 1332b00 | 2015-04-07 17:11:30 -0700 | [diff] [blame] | 84 | "common/config.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 85 | "common/defs.go", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 86 | "common/env.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 87 | "common/glob.go", |
| 88 | "common/module.go", |
| 89 | "common/paths.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 90 | "common/util.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 91 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 92 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 93 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 94 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 95 | name: "soong-cc", |
| 96 | pkgPath: "android/soong/cc", |
| 97 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 98 | "blueprint", |
| 99 | "blueprint-pathtools", |
| 100 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 101 | "soong-genrule", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 102 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 103 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 104 | "cc/builder.go", |
| 105 | "cc/cc.go", |
| 106 | "cc/clang.go", |
Colin Cross | 581c189 | 2015-04-07 16:50:10 -0700 | [diff] [blame] | 107 | "cc/gen.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 108 | "cc/toolchain.go", |
| 109 | "cc/util.go", |
| 110 | |
| 111 | "cc/arm_device.go", |
| 112 | "cc/arm64_device.go", |
| 113 | |
| 114 | "cc/x86_linux_host.go", |
| 115 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 116 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 117 | |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 118 | bootstrap_go_package { |
| 119 | name: "soong-genrule", |
| 120 | pkgPath: "android/soong/genrule", |
| 121 | deps: [ |
| 122 | "blueprint", |
| 123 | "blueprint-pathtools", |
| 124 | "soong-common", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 125 | ], |
| 126 | srcs: [ |
| 127 | "genrule/genrule.go", |
| 128 | ], |
| 129 | } |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 130 | |
| 131 | bootstrap_go_binary { |
| 132 | name: "soong_jar", |
| 133 | srcs: [ |
| 134 | "cmd/soong_jar/soong_jar.go", |
| 135 | ], |
| 136 | } |
| 137 | |
| 138 | bootstrap_go_package { |
| 139 | name: "soong-java", |
| 140 | pkgPath: "android/soong/java", |
| 141 | deps: [ |
| 142 | "blueprint", |
| 143 | "blueprint-pathtools", |
| 144 | "soong-common", |
Colin Cross | 0607cf7 | 2015-04-28 13:28:51 -0700 | [diff] [blame] | 145 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 146 | ], |
| 147 | srcs: [ |
Colin Cross | 30e076a | 2015-04-13 13:58:27 -0700 | [diff] [blame] | 148 | "java/app_builder.go", |
| 149 | "java/app.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 150 | "java/builder.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 151 | "java/gen.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 152 | "java/java.go", |
| 153 | "java/resources.go", |
| 154 | ], |
| 155 | } |
| 156 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 157 | // |
| 158 | // androidmk Android.mk to Blueprints translator |
| 159 | // |
| 160 | |
| 161 | bootstrap_go_binary { |
| 162 | name: "androidmk", |
| 163 | srcs: [ |
| 164 | "androidmk/cmd/androidmk/android.go", |
| 165 | "androidmk/cmd/androidmk/androidmk.go", |
| 166 | "androidmk/cmd/androidmk/values.go", |
| 167 | ], |
| 168 | deps: [ |
| 169 | "androidmk-parser", |
| 170 | "blueprint-parser", |
| 171 | ], |
| 172 | } |
| 173 | |
| 174 | bootstrap_go_package { |
| 175 | name: "androidmk-parser", |
| 176 | pkgPath: "android/soong/androidmk/parser", |
| 177 | srcs: [ |
| 178 | "androidmk/parser/make_strings.go", |
| 179 | "androidmk/parser/makething.go", |
| 180 | "androidmk/parser/parser.go", |
| 181 | "androidmk/parser/scope.go", |
| 182 | ], |
| 183 | } |
| 184 | |
| 185 | // |
| 186 | // C static libraries extracted from the gcc toolchain |
| 187 | // |
| 188 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 189 | toolchain_library { |
| 190 | name: "libatomic", |
| 191 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 192 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 193 | toolchain_library { |
| 194 | name: "libgcc", |
| 195 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 196 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 197 | toolchain_library { |
| 198 | name: "libgcov", |
| 199 | } |