Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
Cole Faust | c41dd72 | 2021-11-09 15:08:26 -0800 | [diff] [blame] | 3 | default_visibility: ["//build/soong:__subpackages__"], |
Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 4 | } |
| 5 | |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 6 | python_binary_host { |
Paul Duffin | 9a89a2a | 2020-10-28 19:20:06 +0000 | [diff] [blame] | 7 | name: "check_boot_jars", |
| 8 | main: "check_boot_jars/check_boot_jars.py", |
| 9 | srcs: [ |
| 10 | "check_boot_jars/check_boot_jars.py", |
| 11 | ], |
Paul Duffin | 9a89a2a | 2020-10-28 19:20:06 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | python_binary_host { |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 15 | name: "manifest_fixer", |
| 16 | main: "manifest_fixer.py", |
| 17 | srcs: [ |
| 18 | "manifest_fixer.py", |
| 19 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 20 | libs: [ |
| 21 | "manifest_utils", |
| 22 | ], |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | python_test_host { |
| 26 | name: "manifest_fixer_test", |
| 27 | main: "manifest_fixer_test.py", |
| 28 | srcs: [ |
| 29 | "manifest_fixer_test.py", |
| 30 | "manifest_fixer.py", |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 31 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 32 | libs: [ |
| 33 | "manifest_utils", |
| 34 | ], |
Julien Desprez | 2dc86b2 | 2021-03-19 17:16:09 +0000 | [diff] [blame] | 35 | test_options: { |
| 36 | unit_test: true, |
| 37 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | python_library_host { |
| 41 | name: "manifest_utils", |
| 42 | srcs: [ |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 43 | "manifest.py", |
| 44 | ], |
Cole Faust | c41dd72 | 2021-11-09 15:08:26 -0800 | [diff] [blame] | 45 | visibility: ["//system/apex/apexer:__pkg__"], |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | python_binary_host { |
| 49 | name: "manifest_check", |
| 50 | main: "manifest_check.py", |
| 51 | srcs: [ |
| 52 | "manifest_check.py", |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 53 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 54 | libs: [ |
| 55 | "manifest_utils", |
| 56 | ], |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | python_test_host { |
| 60 | name: "manifest_check_test", |
| 61 | main: "manifest_check_test.py", |
| 62 | srcs: [ |
| 63 | "manifest_check_test.py", |
| 64 | "manifest_check.py", |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 65 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 66 | libs: [ |
| 67 | "manifest_utils", |
| 68 | ], |
Julien Desprez | 2dc86b2 | 2021-03-19 17:16:09 +0000 | [diff] [blame] | 69 | test_options: { |
| 70 | unit_test: true, |
| 71 | }, |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 72 | } |
Jooyung Han | 04329f1 | 2019-08-01 23:35:08 +0900 | [diff] [blame] | 73 | |
| 74 | python_binary_host { |
| 75 | name: "jsonmodify", |
| 76 | main: "jsonmodify.py", |
| 77 | srcs: [ |
| 78 | "jsonmodify.py", |
| 79 | ], |
Jooyung Han | 04329f1 | 2019-08-01 23:35:08 +0900 | [diff] [blame] | 80 | } |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 81 | |
Alexei Nicoara | 7d69b1d | 2022-07-11 12:38:50 +0100 | [diff] [blame] | 82 | python_test_host { |
| 83 | name: "jsonmodify_test", |
| 84 | main: "jsonmodify_test.py", |
| 85 | srcs: [ |
| 86 | "jsonmodify_test.py", |
| 87 | "jsonmodify.py", |
| 88 | ], |
| 89 | test_suites: ["general-tests"], |
| 90 | } |
| 91 | |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 92 | python_binary_host { |
| 93 | name: "test_config_fixer", |
| 94 | main: "test_config_fixer.py", |
| 95 | srcs: [ |
| 96 | "test_config_fixer.py", |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 97 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 98 | libs: [ |
| 99 | "manifest_utils", |
| 100 | ], |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | python_test_host { |
| 104 | name: "test_config_fixer_test", |
| 105 | main: "test_config_fixer_test.py", |
| 106 | srcs: [ |
| 107 | "test_config_fixer_test.py", |
| 108 | "test_config_fixer.py", |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 109 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 110 | libs: [ |
| 111 | "manifest_utils", |
| 112 | ], |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 113 | test_suites: ["general-tests"], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 114 | } |
Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 115 | |
| 116 | python_binary_host { |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 117 | name: "construct_context", |
| 118 | main: "construct_context.py", |
| 119 | srcs: [ |
| 120 | "construct_context.py", |
| 121 | ], |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 122 | libs: [ |
| 123 | "manifest_utils", |
| 124 | ], |
| 125 | } |
| 126 | |
| 127 | python_test_host { |
| 128 | name: "construct_context_test", |
| 129 | main: "construct_context_test.py", |
| 130 | srcs: [ |
| 131 | "construct_context_test.py", |
| 132 | "construct_context.py", |
| 133 | ], |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 134 | libs: [ |
| 135 | "manifest_utils", |
| 136 | ], |
| 137 | test_suites: ["general-tests"], |
| 138 | } |
| 139 | |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 140 | python_library_host { |
Jiakai Zhang | 7d29222 | 2024-01-18 17:27:42 +0000 | [diff] [blame] | 141 | name: "uffd_gc_utils", |
| 142 | srcs: [ |
| 143 | "uffd_gc_utils.py", |
| 144 | ], |
| 145 | visibility: [ |
| 146 | "//build/make/tools:__subpackages__", |
| 147 | ], |
| 148 | } |
| 149 | |
| 150 | python_test_host { |
| 151 | name: "uffd_gc_utils_test", |
| 152 | main: "uffd_gc_utils_test.py", |
| 153 | srcs: [ |
| 154 | "uffd_gc_utils_test.py", |
| 155 | ], |
| 156 | libs: [ |
| 157 | "uffd_gc_utils", |
| 158 | ], |
| 159 | test_suites: ["general-tests"], |
| 160 | } |
| 161 | |
| 162 | python_binary_host { |
| 163 | name: "construct_uffd_gc_flag", |
| 164 | main: "construct_uffd_gc_flag.py", |
| 165 | srcs: [ |
| 166 | "construct_uffd_gc_flag.py", |
| 167 | ], |
| 168 | libs: [ |
| 169 | "uffd_gc_utils", |
| 170 | ], |
| 171 | } |
| 172 | |
| 173 | python_library_host { |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 174 | name: "ninja_rsp", |
| 175 | srcs: ["ninja_rsp.py"], |
| 176 | } |
| 177 | |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 178 | python_binary_host { |
Jaewoong Jung | 5a42025 | 2021-04-19 17:58:22 -0700 | [diff] [blame] | 179 | name: "lint_project_xml", |
| 180 | main: "lint_project_xml.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 181 | srcs: [ |
Jaewoong Jung | 5a42025 | 2021-04-19 17:58:22 -0700 | [diff] [blame] | 182 | "lint_project_xml.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 183 | ], |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 184 | libs: ["ninja_rsp"], |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 185 | } |
| 186 | |
Jaewoong Jung | 7b93908 | 2021-04-20 07:23:25 -0700 | [diff] [blame] | 187 | python_test_host { |
| 188 | name: "lint_project_xml_test", |
| 189 | main: "lint_project_xml_test.py", |
| 190 | srcs: [ |
| 191 | "lint_project_xml_test.py", |
| 192 | "lint_project_xml.py", |
| 193 | ], |
| 194 | libs: ["ninja_rsp"], |
| 195 | test_suites: ["general-tests"], |
| 196 | } |
| 197 | |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 198 | python_binary_host { |
Cole Faust | bcc3d05 | 2022-09-01 15:20:00 -0700 | [diff] [blame] | 199 | name: "gen-kotlin-build-file", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 200 | main: "gen-kotlin-build-file.py", |
| 201 | srcs: [ |
| 202 | "gen-kotlin-build-file.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 203 | ], |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 204 | libs: ["ninja_rsp"], |
Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 205 | } |
Kiyoung Kim | 62abd12 | 2020-10-06 17:16:44 +0900 | [diff] [blame] | 206 | |
| 207 | python_binary_host { |
| 208 | name: "conv_linker_config", |
| 209 | srcs: [ |
| 210 | "conv_linker_config.py", |
| 211 | ], |
Kiyoung Kim | 62abd12 | 2020-10-06 17:16:44 +0900 | [diff] [blame] | 212 | libs: [ |
| 213 | "linker_config_proto", |
| 214 | ], |
Jooyung Han | 4b4f03f | 2023-04-12 17:20:47 +0900 | [diff] [blame] | 215 | visibility: ["//system/linkerconfig"], |
Kiyoung Kim | 62abd12 | 2020-10-06 17:16:44 +0900 | [diff] [blame] | 216 | } |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 217 | |
Jooyung Han | f6fd4c2 | 2023-03-09 14:50:35 +0900 | [diff] [blame] | 218 | python_test_host { |
| 219 | name: "conv_linker_config_test", |
| 220 | main: "conv_linker_config_test.py", |
| 221 | srcs: [ |
| 222 | "conv_linker_config_test.py", |
| 223 | "conv_linker_config.py", |
| 224 | ], |
| 225 | libs: ["linker_config_proto"], |
| 226 | test_suites: ["general-tests"], |
| 227 | } |
| 228 | |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 229 | python_binary_host { |
| 230 | name: "get_clang_version", |
| 231 | main: "get_clang_version.py", |
| 232 | srcs: [ |
| 233 | "get_clang_version.py", |
| 234 | ], |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 235 | } |
Sasha Smundak | fe11851 | 2022-03-30 20:33:09 -0700 | [diff] [blame] | 236 | |
Jooyung Han | 7113b19 | 2022-09-20 17:00:27 +0900 | [diff] [blame] | 237 | python_binary_host { |
| 238 | name: "build-apex-bundle", |
| 239 | main: "build-apex-bundle.py", |
| 240 | srcs: [ |
| 241 | "build-apex-bundle.py", |
| 242 | ], |
| 243 | required: [ |
| 244 | "bundletool", |
| 245 | ], |
| 246 | } |
| 247 | |
Sasha Smundak | fe11851 | 2022-03-30 20:33:09 -0700 | [diff] [blame] | 248 | sh_binary_host { |
| 249 | name: "list_image", |
| 250 | src: "list_image.sh", |
| 251 | } |
Martin Geisler | 4e86b5e | 2022-05-13 16:01:35 +0200 | [diff] [blame] | 252 | |
| 253 | filegroup { |
| 254 | name: "rustfmt.toml", |
| 255 | srcs: ["rustfmt.toml"], |
| 256 | visibility: ["//visibility:public"], |
| 257 | } |
Romain Jobredeaux | 6d8716c | 2023-03-14 12:41:59 -0400 | [diff] [blame] | 258 | |
| 259 | sh_binary_host { |
| 260 | name: "jars-to-module-info-java", |
| 261 | src: "jars-to-module-info-java.sh", |
| 262 | } |
Andrei Onea | 580f7b0 | 2022-08-17 16:50:48 +0000 | [diff] [blame] | 263 | |
| 264 | python_binary_host { |
| 265 | name: "modify_permissions_allowlist", |
| 266 | main: "modify_permissions_allowlist.py", |
| 267 | srcs: [ |
| 268 | "modify_permissions_allowlist.py", |
| 269 | ], |
| 270 | } |
| 271 | |
| 272 | python_test_host { |
| 273 | name: "modify_permissions_allowlist_test", |
| 274 | main: "modify_permissions_allowlist_test.py", |
| 275 | srcs: [ |
| 276 | "modify_permissions_allowlist_test.py", |
| 277 | "modify_permissions_allowlist.py", |
| 278 | ], |
| 279 | } |
Jihoon Kang | c32d1f5 | 2023-12-14 19:11:16 +0000 | [diff] [blame] | 280 | |
| 281 | sh_binary_host { |
| 282 | name: "keep-flagged-apis", |
| 283 | src: "keep-flagged-apis.sh", |
| 284 | } |
Cole Faust | 4a2a7c9 | 2024-03-12 12:44:40 -0700 | [diff] [blame] | 285 | |
| 286 | python_binary_host { |
| 287 | name: "merge_directories", |
| 288 | main: "merge_directories.py", |
| 289 | srcs: [ |
| 290 | "merge_directories.py", |
| 291 | ], |
Cole Faust | 4a2a7c9 | 2024-03-12 12:44:40 -0700 | [diff] [blame] | 292 | } |
Inseob Kim | 8fa54da | 2024-03-19 16:48:59 +0900 | [diff] [blame] | 293 | |
| 294 | python_binary_host { |
Inseob Kim | 8cdaf51 | 2024-06-11 10:59:00 +0900 | [diff] [blame] | 295 | name: "merge_json", |
| 296 | main: "merge_json.py", |
| 297 | srcs: [ |
| 298 | "merge_json.py", |
| 299 | ], |
| 300 | } |
| 301 | |
| 302 | python_binary_host { |
Inseob Kim | 320628f | 2024-06-18 11:09:12 +0900 | [diff] [blame] | 303 | name: "gen_build_prop", |
| 304 | main: "gen_build_prop.py", |
| 305 | srcs: ["gen_build_prop.py"], |
| 306 | } |
| 307 | |
| 308 | python_binary_host { |
Cole Faust | 99bec75 | 2024-05-09 11:07:20 -0700 | [diff] [blame] | 309 | name: "extra_install_zips_file_list", |
| 310 | main: "extra_install_zips_file_list.py", |
| 311 | srcs: ["extra_install_zips_file_list.py"], |
| 312 | } |