Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 1 | subdirs = [ |
| 2 | "androidmk", |
Jeff Gaston | aff66e5 | 2017-06-19 15:39:54 -0700 | [diff] [blame] | 3 | "bpfix", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 4 | "cmd/*", |
Jeff Gaston | f1fd45e | 2017-08-09 18:25:28 -0700 | [diff] [blame] | 5 | "fs", |
| 6 | "finder", |
Jeff Gaston | 01547b2 | 2017-08-21 20:13:28 -0700 | [diff] [blame] | 7 | "jar", |
Jeff Gaston | 11b5c51 | 2017-10-12 12:19:14 -0700 | [diff] [blame] | 8 | "zip", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 9 | "third_party/zip", |
Dan Willemsen | 1e70446 | 2016-08-21 15:17:17 -0700 | [diff] [blame] | 10 | "ui/*", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 11 | ] |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 12 | |
| 13 | bootstrap_go_package { |
| 14 | name: "soong-env", |
| 15 | pkgPath: "android/soong/env", |
| 16 | srcs: [ |
| 17 | "env/env.go", |
| 18 | ], |
| 19 | } |
| 20 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 21 | bootstrap_go_package { |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 22 | name: "soong", |
| 23 | pkgPath: "android/soong", |
| 24 | deps: [ |
| 25 | "blueprint", |
| 26 | ], |
| 27 | srcs: [ |
| 28 | "doc.go", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 29 | ], |
| 30 | } |
| 31 | |
| 32 | bootstrap_go_package { |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 33 | name: "soong-android", |
| 34 | pkgPath: "android/soong/android", |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 35 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 36 | "blueprint", |
| 37 | "blueprint-bootstrap", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 38 | "soong", |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 39 | "soong-env", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 40 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 41 | srcs: [ |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 42 | "android/androidmk.go", |
Jiyong Park | 9d45299 | 2018-10-03 00:38:19 +0900 | [diff] [blame] | 43 | "android/apex.go", |
Dan Albert | 30c9d6e | 2017-03-28 14:54:55 -0700 | [diff] [blame] | 44 | "android/api_levels.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 45 | "android/arch.go", |
| 46 | "android/config.go", |
| 47 | "android/defaults.go", |
| 48 | "android/defs.go", |
Colin Cross | 6bde094 | 2016-11-04 14:36:38 -0700 | [diff] [blame] | 49 | "android/expand.go", |
Pirama Arumuga Nainar | 955dc49 | 2018-04-17 14:58:42 -0700 | [diff] [blame] | 50 | "android/filegroup.go", |
Colin Cross | 178a509 | 2016-09-13 13:42:32 -0700 | [diff] [blame] | 51 | "android/hooks.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 52 | "android/makevars.go", |
| 53 | "android/module.go", |
| 54 | "android/mutator.go", |
Jeff Gaston | 088e29e | 2017-11-29 16:47:17 -0800 | [diff] [blame] | 55 | "android/namespace.go", |
Steven Moreland | 65b3fd9 | 2017-12-06 14:18:35 -0800 | [diff] [blame] | 56 | "android/neverallow.go", |
Colin Cross | 9272ade | 2016-08-17 15:24:12 -0700 | [diff] [blame] | 57 | "android/onceper.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 58 | "android/package_ctx.go", |
| 59 | "android/paths.go", |
Colin Cross | ce75d2c | 2016-10-06 16:12:58 -0700 | [diff] [blame] | 60 | "android/prebuilt.go", |
Jiyong Park | c678ad3 | 2018-04-10 13:07:10 +0900 | [diff] [blame] | 61 | "android/prebuilt_etc.go", |
Colin Cross | 38f794e | 2017-09-07 10:53:07 -0700 | [diff] [blame] | 62 | "android/proto.go", |
Colin Cross | 798bfce | 2016-10-12 14:28:16 -0700 | [diff] [blame] | 63 | "android/register.go", |
Colin Cross | 0875c52 | 2017-11-28 17:34:01 -0800 | [diff] [blame] | 64 | "android/singleton.go", |
Colin Cross | cec8171 | 2017-07-13 14:43:27 -0700 | [diff] [blame] | 65 | "android/testing.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 66 | "android/util.go", |
| 67 | "android/variable.go", |
Colin Cross | e87040b | 2017-12-11 15:52:26 -0800 | [diff] [blame] | 68 | "android/writedocs.go", |
Dan Willemsen | e8b1bc0 | 2016-05-12 19:03:10 -0700 | [diff] [blame] | 69 | |
| 70 | // Lock down environment access last |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 71 | "android/env.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 72 | ], |
Dan Willemsen | 34cc69e | 2015-09-23 15:26:20 -0700 | [diff] [blame] | 73 | testSrcs: [ |
Jeff Gaston | f5f6e49 | 2017-11-20 14:31:11 -0800 | [diff] [blame] | 74 | "android/config_test.go", |
Colin Cross | 6bde094 | 2016-11-04 14:36:38 -0700 | [diff] [blame] | 75 | "android/expand_test.go", |
Jeff Gaston | 088e29e | 2017-11-29 16:47:17 -0800 | [diff] [blame] | 76 | "android/namespace_test.go", |
Logan Chien | ee97c3e | 2018-03-12 16:34:26 +0800 | [diff] [blame] | 77 | "android/neverallow_test.go", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 78 | "android/paths_test.go", |
Colin Cross | 0d614dd | 2016-10-14 15:38:43 -0700 | [diff] [blame] | 79 | "android/prebuilt_test.go", |
Colin Cross | b671544 | 2017-10-24 11:13:31 -0700 | [diff] [blame] | 80 | "android/util_test.go", |
Colin Cross | 7e0eaf1 | 2017-05-05 16:16:24 -0700 | [diff] [blame] | 81 | "android/variable_test.go", |
Dan Willemsen | 34cc69e | 2015-09-23 15:26:20 -0700 | [diff] [blame] | 82 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 83 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 84 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 85 | bootstrap_go_package { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 86 | name: "soong-cc-config", |
| 87 | pkgPath: "android/soong/cc/config", |
| 88 | deps: [ |
| 89 | "soong-android", |
| 90 | ], |
| 91 | srcs: [ |
| 92 | "cc/config/clang.go", |
| 93 | "cc/config/global.go", |
Dan Willemsen | a03cf6d | 2016-09-26 15:45:04 -0700 | [diff] [blame] | 94 | "cc/config/tidy.go", |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 95 | "cc/config/toolchain.go", |
| 96 | |
| 97 | "cc/config/arm_device.go", |
| 98 | "cc/config/arm64_device.go", |
| 99 | "cc/config/mips_device.go", |
| 100 | "cc/config/mips64_device.go", |
| 101 | "cc/config/x86_device.go", |
| 102 | "cc/config/x86_64_device.go", |
| 103 | |
| 104 | "cc/config/x86_darwin_host.go", |
| 105 | "cc/config/x86_linux_host.go", |
Dan Willemsen | 01a405a | 2016-06-13 17:19:03 -0700 | [diff] [blame] | 106 | "cc/config/x86_linux_bionic_host.go", |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 107 | "cc/config/x86_windows_host.go", |
| 108 | ], |
Dan Willemsen | a03cf6d | 2016-09-26 15:45:04 -0700 | [diff] [blame] | 109 | testSrcs: [ |
| 110 | "cc/config/tidy_test.go", |
| 111 | ], |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | bootstrap_go_package { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 115 | name: "soong-cc", |
| 116 | pkgPath: "android/soong/cc", |
| 117 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 118 | "blueprint", |
| 119 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 120 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 121 | "soong-android", |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 122 | "soong-cc-config", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 123 | "soong-genrule", |
Colin Cross | 303e21f | 2018-08-07 16:49:25 -0700 | [diff] [blame] | 124 | "soong-tradefed", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 125 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 126 | srcs: [ |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 127 | "cc/androidmk.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 128 | "cc/builder.go", |
| 129 | "cc/cc.go", |
Dan Willemsen | 20acc5c | 2016-05-25 14:47:21 -0700 | [diff] [blame] | 130 | "cc/check.go", |
Dan Willemsen | 581341d | 2017-02-09 16:16:31 -0800 | [diff] [blame] | 131 | "cc/coverage.go", |
Colin Cross | 581c189 | 2015-04-07 16:50:10 -0700 | [diff] [blame] | 132 | "cc/gen.go", |
Stephen Crane | ba090d1 | 2017-05-09 15:44:35 -0700 | [diff] [blame] | 133 | "cc/lto.go", |
Dan Willemsen | 4b7d5de | 2016-01-12 23:20:28 -0800 | [diff] [blame] | 134 | "cc/makevars.go", |
Pirama Arumuga Nainar | ada83ec | 2017-08-31 23:38:27 -0700 | [diff] [blame] | 135 | "cc/pgo.go", |
Colin Cross | ce75d2c | 2016-10-06 16:12:58 -0700 | [diff] [blame] | 136 | "cc/prebuilt.go", |
Colin Cross | 0c461f1 | 2016-10-20 16:11:43 -0700 | [diff] [blame] | 137 | "cc/proto.go", |
Colin Cross | 2a252be | 2017-05-01 17:37:24 -0700 | [diff] [blame] | 138 | "cc/rs.go", |
Colin Cross | 16b2349 | 2016-01-06 14:41:07 -0800 | [diff] [blame] | 139 | "cc/sanitize.go", |
Jayant Chowdhary | 3e231fd | 2017-02-08 13:45:53 -0800 | [diff] [blame] | 140 | "cc/sabi.go", |
Colin Cross | ca860ac | 2016-01-04 14:34:37 -0800 | [diff] [blame] | 141 | "cc/stl.go", |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 142 | "cc/strip.go", |
Dan Willemsen | a03cf6d | 2016-09-26 15:45:04 -0700 | [diff] [blame] | 143 | "cc/tidy.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 144 | "cc/util.go", |
Justin Yun | 8effde4 | 2017-06-23 19:24:43 +0900 | [diff] [blame] | 145 | "cc/vndk.go", |
Justin Yun | 7154928 | 2017-11-17 12:10:28 +0900 | [diff] [blame] | 146 | "cc/vndk_prebuilt.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 147 | |
Fabien Sanglard | d61f1f4 | 2017-01-10 16:21:22 -0800 | [diff] [blame] | 148 | "cc/cmakelists.go", |
Alex Light | ec868fc | 2018-04-17 16:50:48 -0700 | [diff] [blame] | 149 | "cc/compdb.go", |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 150 | "cc/compiler.go", |
| 151 | "cc/installer.go", |
| 152 | "cc/linker.go", |
| 153 | |
| 154 | "cc/binary.go", |
| 155 | "cc/library.go", |
| 156 | "cc/object.go", |
| 157 | "cc/test.go", |
Colin Cross | b916a38 | 2016-07-29 17:28:03 -0700 | [diff] [blame] | 158 | "cc/toolchain_library.go", |
Colin Cross | 4d9c2d1 | 2016-07-29 12:48:20 -0700 | [diff] [blame] | 159 | |
| 160 | "cc/ndk_prebuilt.go", |
Dan Albert | 914449f | 2016-06-17 16:45:24 -0700 | [diff] [blame] | 161 | "cc/ndk_headers.go", |
| 162 | "cc/ndk_library.go", |
| 163 | "cc/ndk_sysroot.go", |
Dan Willemsen | b916b80 | 2017-03-19 13:44:32 -0700 | [diff] [blame] | 164 | |
| 165 | "cc/llndk_library.go", |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 166 | |
| 167 | "cc/kernel_headers.go", |
Dan Willemsen | 3e5bdf2 | 2017-09-13 18:37:08 -0700 | [diff] [blame] | 168 | |
| 169 | "cc/genrule.go", |
Jiyong Park | 374510b | 2018-03-19 18:23:01 +0900 | [diff] [blame] | 170 | |
| 171 | "cc/vendor_public_library.go", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 172 | ], |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 173 | testSrcs: [ |
| 174 | "cc/cc_test.go", |
Colin Cross | f18e110 | 2017-11-16 14:33:08 -0800 | [diff] [blame] | 175 | "cc/gen_test.go", |
Colin Cross | ad59e75 | 2017-11-16 14:29:11 -0800 | [diff] [blame] | 176 | "cc/library_test.go", |
Colin Cross | faeb7aa | 2017-02-01 14:12:44 -0800 | [diff] [blame] | 177 | "cc/test_data_test.go", |
Logan Chien | 031d2b3 | 2018-07-26 00:19:50 +0800 | [diff] [blame] | 178 | "cc/util_test.go", |
Dan Willemsen | e5e2033 | 2015-06-23 19:46:20 -0700 | [diff] [blame] | 179 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 180 | pluginFor: ["soong_build"], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 181 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 182 | |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 183 | bootstrap_go_package { |
| 184 | name: "soong-genrule", |
| 185 | pkgPath: "android/soong/genrule", |
| 186 | deps: [ |
| 187 | "blueprint", |
| 188 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 189 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 190 | "soong-android", |
Jeff Gaston | efc1b41 | 2017-03-29 17:29:06 -0700 | [diff] [blame] | 191 | "soong-shared", |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 192 | ], |
| 193 | srcs: [ |
| 194 | "genrule/genrule.go", |
| 195 | ], |
Colin Cross | 2a07692 | 2018-10-04 23:28:25 -0700 | [diff] [blame] | 196 | testSrcs: [ |
| 197 | "genrule/genrule_test.go", |
| 198 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 199 | pluginFor: ["soong_build"], |
Colin Cross | 5049f02 | 2015-03-18 13:28:46 -0700 | [diff] [blame] | 200 | } |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 201 | |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 202 | bootstrap_go_package { |
Nan Zhang | 6d34b30 | 2017-02-04 17:47:46 -0800 | [diff] [blame] | 203 | name: "soong-phony", |
| 204 | pkgPath: "android/soong/phony", |
| 205 | deps: [ |
| 206 | "blueprint", |
| 207 | "soong-android", |
| 208 | ], |
| 209 | srcs: [ |
| 210 | "phony/phony.go", |
| 211 | ], |
| 212 | pluginFor: ["soong_build"], |
| 213 | } |
| 214 | |
| 215 | bootstrap_go_package { |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 216 | name: "soong-java", |
| 217 | pkgPath: "android/soong/java", |
| 218 | deps: [ |
| 219 | "blueprint", |
| 220 | "blueprint-pathtools", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 221 | "soong", |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 222 | "soong-android", |
Colin Cross | a4f0881 | 2018-10-02 22:03:40 -0700 | [diff] [blame] | 223 | "soong-cc", |
Colin Cross | 0607cf7 | 2015-04-28 13:28:51 -0700 | [diff] [blame] | 224 | "soong-genrule", |
Colin Cross | 3e3e72d | 2017-06-22 17:20:19 -0700 | [diff] [blame] | 225 | "soong-java-config", |
Colin Cross | 303e21f | 2018-08-07 16:49:25 -0700 | [diff] [blame] | 226 | "soong-tradefed", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 227 | ], |
| 228 | srcs: [ |
Colin Cross | 3bc7ffa | 2017-11-22 16:19:37 -0800 | [diff] [blame] | 229 | "java/aapt2.go", |
Colin Cross | fabb608 | 2018-02-20 17:22:23 -0800 | [diff] [blame] | 230 | "java/aar.go", |
Colin Cross | 3165695 | 2018-05-24 16:11:20 -0700 | [diff] [blame] | 231 | "java/android_manifest.go", |
Colin Cross | a97c5d3 | 2018-03-28 14:58:31 -0700 | [diff] [blame] | 232 | "java/android_resources.go", |
Dan Willemsen | 218f656 | 2015-07-08 18:13:11 -0700 | [diff] [blame] | 233 | "java/androidmk.go", |
Colin Cross | 30e076a | 2015-04-13 13:58:27 -0700 | [diff] [blame] | 234 | "java/app_builder.go", |
| 235 | "java/app.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 236 | "java/builder.go", |
Colin Cross | f0056cb | 2017-12-22 15:56:08 -0800 | [diff] [blame] | 237 | "java/dex.go", |
Nan Zhang | 581fd21 | 2018-01-10 16:06:12 -0800 | [diff] [blame] | 238 | "java/droiddoc.go", |
Colin Cross | c0b06f1 | 2015-04-08 13:03:43 -0700 | [diff] [blame] | 239 | "java/gen.go", |
Colin Cross | 5425090 | 2017-12-05 09:28:08 -0800 | [diff] [blame] | 240 | "java/genrule.go", |
Colin Cross | cb93359 | 2017-11-22 13:49:43 -0800 | [diff] [blame] | 241 | "java/jacoco.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 242 | "java/java.go", |
Brandon Lee | 5d45c6f | 2018-08-15 15:35:38 -0700 | [diff] [blame] | 243 | "java/jdeps.go", |
Colin Cross | a97c5d3 | 2018-03-28 14:58:31 -0700 | [diff] [blame] | 244 | "java/java_resources.go", |
Jiyong Park | 58c518b | 2018-05-12 22:29:12 +0900 | [diff] [blame] | 245 | "java/prebuilt_apis.go", |
Colin Cross | 6af17aa | 2017-09-20 12:59:05 -0700 | [diff] [blame] | 246 | "java/proto.go", |
Jiyong Park | c678ad3 | 2018-04-10 13:07:10 +0900 | [diff] [blame] | 247 | "java/sdk_library.go", |
Colin Cross | b2559a0 | 2018-04-19 15:26:10 -0700 | [diff] [blame] | 248 | "java/support_libraries.go", |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 249 | "java/system_modules.go", |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 250 | ], |
Colin Cross | 72bb363 | 2017-07-13 16:23:21 -0700 | [diff] [blame] | 251 | testSrcs: [ |
Colin Cross | 44f0668 | 2017-11-29 00:17:36 -0800 | [diff] [blame] | 252 | "java/app_test.go", |
Colin Cross | 72bb363 | 2017-07-13 16:23:21 -0700 | [diff] [blame] | 253 | "java/java_test.go", |
Brandon Lee | 5d45c6f | 2018-08-15 15:35:38 -0700 | [diff] [blame] | 254 | "java/jdeps_test.go", |
Colin Cross | 72bb363 | 2017-07-13 16:23:21 -0700 | [diff] [blame] | 255 | ], |
Dan Willemsen | 98b26c5 | 2015-07-27 15:08:24 -0700 | [diff] [blame] | 256 | pluginFor: ["soong_build"], |
Colin Cross | 2fe6687 | 2015-03-30 17:20:39 -0700 | [diff] [blame] | 257 | } |
| 258 | |
Nan Zhang | db0b9a3 | 2017-02-27 10:12:13 -0800 | [diff] [blame] | 259 | bootstrap_go_package { |
Colin Cross | 3e3e72d | 2017-06-22 17:20:19 -0700 | [diff] [blame] | 260 | name: "soong-java-config", |
| 261 | pkgPath: "android/soong/java/config", |
| 262 | deps: [ |
| 263 | "blueprint-proptools", |
| 264 | "soong-android", |
| 265 | ], |
| 266 | srcs: [ |
| 267 | "java/config/config.go", |
Colin Cross | fee57cb | 2017-09-05 13:16:45 -0700 | [diff] [blame] | 268 | "java/config/error_prone.go", |
Colin Cross | 93e8595 | 2017-08-15 13:34:18 -0700 | [diff] [blame] | 269 | "java/config/kotlin.go", |
Colin Cross | 3e3e72d | 2017-06-22 17:20:19 -0700 | [diff] [blame] | 270 | "java/config/makevars.go", |
| 271 | ], |
| 272 | } |
| 273 | |
| 274 | bootstrap_go_package { |
Nan Zhang | db0b9a3 | 2017-02-27 10:12:13 -0800 | [diff] [blame] | 275 | name: "soong-python", |
| 276 | pkgPath: "android/soong/python", |
| 277 | deps: [ |
| 278 | "blueprint", |
| 279 | "soong-android", |
| 280 | ], |
| 281 | srcs: [ |
Nan Zhang | 5323f8e | 2017-05-10 13:37:54 -0700 | [diff] [blame] | 282 | "python/androidmk.go", |
Nan Zhang | db0b9a3 | 2017-02-27 10:12:13 -0800 | [diff] [blame] | 283 | "python/binary.go", |
| 284 | "python/builder.go", |
Nan Zhang | a3fc4ba | 2017-07-20 17:43:37 -0700 | [diff] [blame] | 285 | "python/defaults.go", |
Nan Zhang | 5323f8e | 2017-05-10 13:37:54 -0700 | [diff] [blame] | 286 | "python/installer.go", |
Nan Zhang | db0b9a3 | 2017-02-27 10:12:13 -0800 | [diff] [blame] | 287 | "python/library.go", |
Nan Zhang | b8fa197 | 2017-12-22 16:12:00 -0800 | [diff] [blame] | 288 | "python/proto.go", |
Nan Zhang | db0b9a3 | 2017-02-27 10:12:13 -0800 | [diff] [blame] | 289 | "python/python.go", |
Nan Zhang | 5323f8e | 2017-05-10 13:37:54 -0700 | [diff] [blame] | 290 | "python/test.go", |
Nan Zhang | db0b9a3 | 2017-02-27 10:12:13 -0800 | [diff] [blame] | 291 | ], |
| 292 | testSrcs: [ |
| 293 | "python/python_test.go", |
| 294 | ], |
| 295 | pluginFor: ["soong_build"], |
| 296 | } |
| 297 | |
Jeff Gaston | efc1b41 | 2017-03-29 17:29:06 -0700 | [diff] [blame] | 298 | bootstrap_go_package { |
| 299 | name: "soong-shared", |
| 300 | pkgPath: "android/soong/shared", |
| 301 | srcs: [ |
| 302 | "shared/paths.go", |
| 303 | ], |
| 304 | } |
| 305 | |
Jiyong Park | 5a8d1be | 2018-04-25 22:57:34 +0900 | [diff] [blame] | 306 | bootstrap_go_package { |
Colin Cross | 303e21f | 2018-08-07 16:49:25 -0700 | [diff] [blame] | 307 | name: "soong-tradefed", |
| 308 | pkgPath: "android/soong/tradefed", |
| 309 | deps: [ |
| 310 | "blueprint", |
| 311 | "soong-android", |
| 312 | ], |
| 313 | srcs: [ |
| 314 | "tradefed/autogen.go", |
| 315 | "tradefed/config.go", |
| 316 | "tradefed/makevars.go", |
| 317 | ], |
| 318 | pluginFor: ["soong_build"], |
| 319 | } |
| 320 | |
| 321 | bootstrap_go_package { |
Jiyong Park | 5a8d1be | 2018-04-25 22:57:34 +0900 | [diff] [blame] | 322 | name: "soong-xml", |
| 323 | pkgPath: "android/soong/xml", |
| 324 | deps: [ |
| 325 | "blueprint", |
| 326 | "blueprint-pathtools", |
| 327 | "soong", |
| 328 | "soong-android", |
| 329 | ], |
| 330 | srcs: [ |
| 331 | "xml/xml.go", |
| 332 | ], |
| 333 | testSrcs: [ |
| 334 | "xml/xml_test.go", |
| 335 | ], |
| 336 | pluginFor: ["soong_build"], |
| 337 | } |
| 338 | |
Jiyong Park | 48ca7dc | 2018-10-10 14:01:00 +0900 | [diff] [blame] | 339 | bootstrap_go_package { |
| 340 | name: "soong-apex", |
| 341 | pkgPath: "android/soong/apex", |
| 342 | deps: [ |
| 343 | "blueprint", |
| 344 | "soong", |
| 345 | "soong-android", |
| 346 | "soong-cc", |
| 347 | "soong-java", |
| 348 | ], |
| 349 | srcs: [ |
| 350 | "apex/apex.go", |
Jiyong Park | ff1458f | 2018-10-12 21:49:38 +0900 | [diff] [blame] | 351 | "apex/key.go", |
Jiyong Park | 48ca7dc | 2018-10-10 14:01:00 +0900 | [diff] [blame] | 352 | ], |
| 353 | pluginFor: ["soong_build"], |
| 354 | } |
| 355 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 356 | // |
Dan Willemsen | 00fcbde | 2016-11-17 00:25:59 -0800 | [diff] [blame] | 357 | // Defaults to enable various configurations of host bionic |
| 358 | // |
| 359 | |
| 360 | cc_defaults { |
| 361 | name: "linux_bionic_supported", |
| 362 | host_supported: true, |
| 363 | target: { |
| 364 | host: { |
| 365 | enabled: false, |
| 366 | }, |
| 367 | linux_bionic: { |
| 368 | enabled: true, |
| 369 | }, |
| 370 | }, |
| 371 | } |
| 372 | |
| 373 | // |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 374 | // C static libraries extracted from the gcc toolchain |
| 375 | // |
| 376 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 377 | toolchain_library { |
| 378 | name: "libatomic", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 379 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | 4416e5d | 2017-04-06 12:43:22 -0700 | [diff] [blame] | 380 | vendor_available: true, |
Jiyong Park | f9332f1 | 2018-02-01 00:54:12 +0900 | [diff] [blame] | 381 | recovery_available: true, |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 382 | |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 383 | arch: { |
| 384 | arm: { |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 385 | src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a", |
| 386 | }, |
| 387 | arm64: { |
| 388 | src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a", |
| 389 | }, |
| 390 | x86: { |
| 391 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a", |
| 392 | }, |
| 393 | x86_64: { |
| 394 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib64/libatomic.a", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 395 | }, |
| 396 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 397 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 398 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 399 | toolchain_library { |
| 400 | name: "libgcc", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 401 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | 4416e5d | 2017-04-06 12:43:22 -0700 | [diff] [blame] | 402 | vendor_available: true, |
Jiyong Park | f9332f1 | 2018-02-01 00:54:12 +0900 | [diff] [blame] | 403 | recovery_available: true, |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 404 | |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 405 | arch: { |
| 406 | arm: { |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 407 | src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a", |
| 408 | }, |
| 409 | arm64: { |
| 410 | src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a", |
| 411 | }, |
| 412 | x86: { |
| 413 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a", |
| 414 | }, |
| 415 | x86_64: { |
| 416 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 417 | }, |
| 418 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 419 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 420 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 421 | toolchain_library { |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 422 | name: "libwinpthread", |
| 423 | host_supported: true, |
| 424 | enabled: false, |
| 425 | target: { |
| 426 | windows: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 427 | enabled: true, |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 428 | }, |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 429 | windows_x86: { |
| 430 | src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a", |
| 431 | }, |
| 432 | windows_x86_64: { |
| 433 | src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a", |
| 434 | }, |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 435 | }, |
| 436 | } |
| 437 | |
| 438 | toolchain_library { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 439 | name: "libgcov", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 440 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 441 | |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 442 | arch: { |
| 443 | arm: { |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 444 | src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a", |
| 445 | }, |
| 446 | arm64: { |
| 447 | src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a", |
| 448 | }, |
| 449 | x86: { |
| 450 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a", |
| 451 | }, |
| 452 | x86_64: { |
| 453 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcov.a", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 454 | }, |
| 455 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 456 | } |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 457 | |
| 458 | kernel_headers { |
| 459 | name: "device_kernel_headers", |
| 460 | vendor: true, |
| 461 | } |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 462 | |
| 463 | cc_genrule { |
| 464 | name: "host_bionic_linker_asm", |
| 465 | host_supported: true, |
| 466 | device_supported: false, |
| 467 | target: { |
| 468 | linux_bionic: { |
| 469 | enabled: true, |
| 470 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 471 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 472 | enabled: false, |
| 473 | }, |
| 474 | darwin: { |
| 475 | enabled: false, |
| 476 | }, |
| 477 | }, |
| 478 | tools: ["extract_linker"], |
| 479 | cmd: "$(location) -s $(out) $(in)", |
| 480 | srcs: [":linker"], |
| 481 | out: ["linker.s"], |
| 482 | } |
| 483 | |
| 484 | cc_genrule { |
Dan Willemsen | a0790e3 | 2018-10-12 00:24:23 -0700 | [diff] [blame^] | 485 | name: "host_bionic_linker_flags", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 486 | host_supported: true, |
| 487 | device_supported: false, |
| 488 | target: { |
| 489 | linux_bionic: { |
| 490 | enabled: true, |
| 491 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 492 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 493 | enabled: false, |
| 494 | }, |
| 495 | darwin: { |
| 496 | enabled: false, |
| 497 | }, |
| 498 | }, |
| 499 | tools: ["extract_linker"], |
Dan Willemsen | a0790e3 | 2018-10-12 00:24:23 -0700 | [diff] [blame^] | 500 | cmd: "$(location) -f $(out) $(in)", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 501 | srcs: [":linker"], |
Dan Willemsen | a0790e3 | 2018-10-12 00:24:23 -0700 | [diff] [blame^] | 502 | out: ["linker.flags"], |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 503 | } |