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 | |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 13 | subdirs = [ |
| 14 | "androidmk", |
| 15 | "cmd/*", |
| 16 | "third_party/zip", |
Dan Willemsen | 1e70446 | 2016-08-21 15:17:17 -0700 | [diff] [blame] | 17 | "ui/*", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 18 | ] |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 19 | |
| 20 | bootstrap_go_package { |
| 21 | name: "soong-env", |
| 22 | pkgPath: "android/soong/env", |
| 23 | srcs: [ |
| 24 | "env/env.go", |
| 25 | ], |
| 26 | } |
| 27 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 28 | bootstrap_go_package { |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 29 | name: "soong", |
| 30 | pkgPath: "android/soong", |
| 31 | deps: [ |
| 32 | "blueprint", |
| 33 | ], |
| 34 | srcs: [ |
| 35 | "doc.go", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 36 | ], |
| 37 | } |
| 38 | |
| 39 | bootstrap_go_package { |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 40 | name: "soong-android", |
| 41 | pkgPath: "android/soong/android", |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 42 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 43 | "blueprint", |
| 44 | "blueprint-bootstrap", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 45 | "soong", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 46 | "soong-env", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 47 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 48 | srcs: [ |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 49 | "android/androidmk.go", |
| 50 | "android/arch.go", |
| 51 | "android/config.go", |
| 52 | "android/defaults.go", |
| 53 | "android/defs.go", |
Colin Cross | 6bde094 | 2016-11-04 14:36:38 -0700 | [diff] [blame] | 54 | "android/expand.go", |
Colin Cross | 178a509 | 2016-09-13 13:42:32 -0700 | [diff] [blame] | 55 | "android/hooks.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 56 | "android/makevars.go", |
| 57 | "android/module.go", |
| 58 | "android/mutator.go", |
Colin Cross | 9272ade | 2016-08-17 15:24:12 -0700 | [diff] [blame] | 59 | "android/onceper.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 60 | "android/package_ctx.go", |
| 61 | "android/paths.go", |
Colin Cross | ce75d2c | 2016-10-06 16:12:58 -0700 | [diff] [blame] | 62 | "android/prebuilt.go", |
Colin Cross | 798bfce | 2016-10-12 14:28:16 -0700 | [diff] [blame] | 63 | "android/register.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 64 | "android/util.go", |
| 65 | "android/variable.go", |
Dan Willemsen | e8b1bc0 | 2016-05-12 19:03:10 -0700 | [diff] [blame] | 66 | |
| 67 | // Lock down environment access last |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 68 | "android/env.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 69 | ], |
Dan Willemsen | 34cc69e | 2015-09-23 15:26:20 -0700 | [diff] [blame] | 70 | testSrcs: [ |
Colin Cross | 6bde094 | 2016-11-04 14:36:38 -0700 | [diff] [blame] | 71 | "android/expand_test.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 72 | "android/paths_test.go", |
Colin Cross | 0d614dd | 2016-10-14 15:38:43 -0700 | [diff] [blame] | 73 | "android/prebuilt_test.go", |
Dan Willemsen | 34cc69e | 2015-09-23 15:26:20 -0700 | [diff] [blame] | 74 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 75 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 76 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 77 | bootstrap_go_package { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 78 | name: "soong-cc-config", |
| 79 | pkgPath: "android/soong/cc/config", |
| 80 | deps: [ |
| 81 | "soong-android", |
| 82 | ], |
| 83 | srcs: [ |
| 84 | "cc/config/clang.go", |
| 85 | "cc/config/global.go", |
Dan Willemsen | a03cf6d | 2016-09-26 15:45:04 -0700 | [diff] [blame] | 86 | "cc/config/tidy.go", |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 87 | "cc/config/toolchain.go", |
| 88 | |
| 89 | "cc/config/arm_device.go", |
| 90 | "cc/config/arm64_device.go", |
| 91 | "cc/config/mips_device.go", |
| 92 | "cc/config/mips64_device.go", |
| 93 | "cc/config/x86_device.go", |
| 94 | "cc/config/x86_64_device.go", |
| 95 | |
| 96 | "cc/config/x86_darwin_host.go", |
| 97 | "cc/config/x86_linux_host.go", |
| 98 | "cc/config/x86_windows_host.go", |
| 99 | ], |
Dan Willemsen | a03cf6d | 2016-09-26 15:45:04 -0700 | [diff] [blame] | 100 | testSrcs: [ |
| 101 | "cc/config/tidy_test.go", |
| 102 | ], |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 106 | name: "soong-cc", |
| 107 | pkgPath: "android/soong/cc", |
| 108 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 109 | "blueprint", |
| 110 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 111 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 112 | "soong-android", |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 113 | "soong-cc-config", |
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: [ |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 117 | "cc/androidmk.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 118 | "cc/builder.go", |
| 119 | "cc/cc.go", |
Dan Willemsen | 20acc5c | 2016-05-25 14:47:21 -0700 | [diff] [blame] | 120 | "cc/check.go", |
Colin Cross | 581c189 | 2015-04-07 16:50:10 -0700 | [diff] [blame] | 121 | "cc/gen.go", |
Dan Willemsen | 4b7d5de | 2016-01-12 23:20:28 -0800 | [diff] [blame] | 122 | "cc/makevars.go", |
Colin Cross | ce75d2c | 2016-10-06 16:12:58 -0700 | [diff] [blame] | 123 | "cc/prebuilt.go", |
Colin Cross | 0c461f1 | 2016-10-20 16:11:43 -0700 | [diff] [blame] | 124 | "cc/proto.go", |
Dan Willemsen | 394e9dc | 2016-09-14 15:04:48 -0700 | [diff] [blame] | 125 | "cc/relocation_packer.go", |
Colin Cross | 16b2349 | 2016-01-06 14:41:07 -0800 | [diff] [blame] | 126 | "cc/sanitize.go", |
Colin Cross | ca860ac | 2016-01-04 14:34:37 -0800 | [diff] [blame] | 127 | "cc/stl.go", |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 128 | "cc/strip.go", |
Dan Willemsen | a03cf6d | 2016-09-26 15:45:04 -0700 | [diff] [blame] | 129 | "cc/tidy.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 130 | "cc/util.go", |
| 131 | |
Fabien Sanglard | d61f1f4 | 2017-01-10 16:21:22 -0800 | [diff] [blame^] | 132 | "cc/cmakelists.go", |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 133 | "cc/compiler.go", |
| 134 | "cc/installer.go", |
| 135 | "cc/linker.go", |
| 136 | |
| 137 | "cc/binary.go", |
| 138 | "cc/library.go", |
| 139 | "cc/object.go", |
| 140 | "cc/test.go", |
Colin Cross | b916a38 | 2016-07-29 17:28:03 -0700 | [diff] [blame] | 141 | "cc/toolchain_library.go", |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 142 | |
| 143 | "cc/ndk_prebuilt.go", |
Dan Albert | 914449f | 2016-06-17 16:45:24 -0700 | [diff] [blame] | 144 | "cc/ndk_headers.go", |
| 145 | "cc/ndk_library.go", |
| 146 | "cc/ndk_sysroot.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 147 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 148 | testSrcs: [ |
| 149 | "cc/cc_test.go", |
Colin Cross | faeb7aa | 2017-02-01 14:12:44 -0800 | [diff] [blame] | 150 | "cc/test_data_test.go", |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 151 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 152 | pluginFor: ["soong_build"], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 153 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 154 | |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 155 | bootstrap_go_package { |
| 156 | name: "soong-genrule", |
| 157 | pkgPath: "android/soong/genrule", |
| 158 | deps: [ |
| 159 | "blueprint", |
| 160 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 161 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 162 | "soong-android", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 163 | ], |
| 164 | srcs: [ |
Colin Cross | 068e0fe | 2016-12-13 15:23:47 -0800 | [diff] [blame] | 165 | "genrule/filegroup.go", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 166 | "genrule/genrule.go", |
| 167 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 168 | pluginFor: ["soong_build"], |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 169 | } |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 170 | |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 171 | bootstrap_go_package { |
Nan Zhang | 6d34b30 | 2017-02-04 17:47:46 -0800 | [diff] [blame] | 172 | name: "soong-phony", |
| 173 | pkgPath: "android/soong/phony", |
| 174 | deps: [ |
| 175 | "blueprint", |
| 176 | "soong-android", |
| 177 | ], |
| 178 | srcs: [ |
| 179 | "phony/phony.go", |
| 180 | ], |
| 181 | pluginFor: ["soong_build"], |
| 182 | } |
| 183 | |
| 184 | bootstrap_go_package { |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 185 | name: "soong-java", |
| 186 | pkgPath: "android/soong/java", |
| 187 | deps: [ |
| 188 | "blueprint", |
| 189 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 190 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 191 | "soong-android", |
Colin Cross | 0607cf7 | 2015-04-28 13:28:51 -0700 | [diff] [blame] | 192 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 193 | ], |
| 194 | srcs: [ |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 195 | "java/androidmk.go", |
Colin Cross | 30e076a | 2015-04-13 13:58:27 -0700 | [diff] [blame] | 196 | "java/app_builder.go", |
| 197 | "java/app.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 198 | "java/builder.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 199 | "java/gen.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 200 | "java/java.go", |
| 201 | "java/resources.go", |
| 202 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 203 | pluginFor: ["soong_build"], |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 204 | } |
| 205 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 206 | // |
Dan Willemsen | 00fcbde | 2016-11-17 00:25:59 -0800 | [diff] [blame] | 207 | // Defaults to enable various configurations of host bionic |
| 208 | // |
| 209 | |
| 210 | cc_defaults { |
| 211 | name: "linux_bionic_supported", |
| 212 | host_supported: true, |
| 213 | target: { |
| 214 | host: { |
| 215 | enabled: false, |
| 216 | }, |
| 217 | linux_bionic: { |
| 218 | enabled: true, |
| 219 | }, |
| 220 | }, |
| 221 | } |
| 222 | |
| 223 | // |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 224 | // C static libraries extracted from the gcc toolchain |
| 225 | // |
| 226 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 227 | toolchain_library { |
| 228 | name: "libatomic", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 229 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 230 | arch: { |
| 231 | arm: { |
| 232 | instruction_set: "arm", |
| 233 | }, |
| 234 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 235 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 236 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 237 | toolchain_library { |
| 238 | name: "libgcc", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 239 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 240 | arch: { |
| 241 | arm: { |
| 242 | instruction_set: "arm", |
| 243 | }, |
| 244 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 245 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 246 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 247 | toolchain_library { |
| 248 | name: "libgcov", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 249 | defaults: ["linux_bionic_supported"], |
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 | } |