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 | |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 132 | "cc/compiler.go", |
| 133 | "cc/installer.go", |
| 134 | "cc/linker.go", |
| 135 | |
| 136 | "cc/binary.go", |
| 137 | "cc/library.go", |
| 138 | "cc/object.go", |
| 139 | "cc/test.go", |
Colin Cross | b916a38 | 2016-07-29 17:28:03 -0700 | [diff] [blame] | 140 | "cc/toolchain_library.go", |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 141 | |
| 142 | "cc/ndk_prebuilt.go", |
Dan Albert | 914449f | 2016-06-17 16:45:24 -0700 | [diff] [blame] | 143 | "cc/ndk_headers.go", |
| 144 | "cc/ndk_library.go", |
| 145 | "cc/ndk_sysroot.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 146 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 147 | testSrcs: [ |
| 148 | "cc/cc_test.go", |
Colin Cross | faeb7aa | 2017-02-01 14:12:44 -0800 | [diff] [blame] | 149 | "cc/test_data_test.go", |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 150 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 151 | pluginFor: ["soong_build"], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 152 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 153 | |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 154 | bootstrap_go_package { |
| 155 | name: "soong-genrule", |
| 156 | pkgPath: "android/soong/genrule", |
| 157 | deps: [ |
| 158 | "blueprint", |
| 159 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 160 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 161 | "soong-android", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 162 | ], |
| 163 | srcs: [ |
Colin Cross | 068e0fe | 2016-12-13 15:23:47 -0800 | [diff] [blame] | 164 | "genrule/filegroup.go", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 165 | "genrule/genrule.go", |
| 166 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 167 | pluginFor: ["soong_build"], |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 168 | } |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 169 | |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 170 | bootstrap_go_package { |
| 171 | name: "soong-java", |
| 172 | pkgPath: "android/soong/java", |
| 173 | deps: [ |
| 174 | "blueprint", |
| 175 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 176 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 177 | "soong-android", |
Colin Cross | 0607cf7 | 2015-04-28 13:28:51 -0700 | [diff] [blame] | 178 | "soong-genrule", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 179 | ], |
| 180 | srcs: [ |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 181 | "java/androidmk.go", |
Colin Cross | 30e076a | 2015-04-13 13:58:27 -0700 | [diff] [blame] | 182 | "java/app_builder.go", |
| 183 | "java/app.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 184 | "java/builder.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 185 | "java/gen.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 186 | "java/java.go", |
| 187 | "java/resources.go", |
| 188 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 189 | pluginFor: ["soong_build"], |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 190 | } |
| 191 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 192 | // |
Dan Willemsen | 00fcbde | 2016-11-17 00:25:59 -0800 | [diff] [blame] | 193 | // Defaults to enable various configurations of host bionic |
| 194 | // |
| 195 | |
| 196 | cc_defaults { |
| 197 | name: "linux_bionic_supported", |
| 198 | host_supported: true, |
| 199 | target: { |
| 200 | host: { |
| 201 | enabled: false, |
| 202 | }, |
| 203 | linux_bionic: { |
| 204 | enabled: true, |
| 205 | }, |
| 206 | }, |
| 207 | } |
| 208 | |
| 209 | // |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 210 | // C static libraries extracted from the gcc toolchain |
| 211 | // |
| 212 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 213 | toolchain_library { |
| 214 | name: "libatomic", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 215 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 216 | arch: { |
| 217 | arm: { |
| 218 | instruction_set: "arm", |
| 219 | }, |
| 220 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 221 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 222 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 223 | toolchain_library { |
| 224 | name: "libgcc", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 225 | defaults: ["linux_bionic_supported"], |
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 | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 235 | defaults: ["linux_bionic_supported"], |
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 | } |