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