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 | ], |
| 32 | version: { |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 33 | py3: { |
Cole Faust | c41dd72 | 2021-11-09 15:08:26 -0800 | [diff] [blame] | 34 | embedded_launcher: true, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 35 | }, |
| 36 | }, |
| 37 | libs: [ |
| 38 | "manifest_utils", |
| 39 | ], |
Julien Desprez | 2dc86b2 | 2021-03-19 17:16:09 +0000 | [diff] [blame] | 40 | test_options: { |
| 41 | unit_test: true, |
| 42 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | python_library_host { |
| 46 | name: "manifest_utils", |
| 47 | srcs: [ |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 48 | "manifest.py", |
| 49 | ], |
Cole Faust | c41dd72 | 2021-11-09 15:08:26 -0800 | [diff] [blame] | 50 | visibility: ["//system/apex/apexer:__pkg__"], |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | python_binary_host { |
| 54 | name: "manifest_check", |
| 55 | main: "manifest_check.py", |
| 56 | srcs: [ |
| 57 | "manifest_check.py", |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 58 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 59 | libs: [ |
| 60 | "manifest_utils", |
| 61 | ], |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | python_test_host { |
| 65 | name: "manifest_check_test", |
| 66 | main: "manifest_check_test.py", |
| 67 | srcs: [ |
| 68 | "manifest_check_test.py", |
| 69 | "manifest_check.py", |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 70 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 71 | libs: [ |
| 72 | "manifest_utils", |
| 73 | ], |
Julien Desprez | 2dc86b2 | 2021-03-19 17:16:09 +0000 | [diff] [blame] | 74 | test_options: { |
| 75 | unit_test: true, |
| 76 | }, |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 77 | } |
Jooyung Han | 04329f1 | 2019-08-01 23:35:08 +0900 | [diff] [blame] | 78 | |
| 79 | python_binary_host { |
| 80 | name: "jsonmodify", |
| 81 | main: "jsonmodify.py", |
| 82 | srcs: [ |
| 83 | "jsonmodify.py", |
| 84 | ], |
Jooyung Han | 04329f1 | 2019-08-01 23:35:08 +0900 | [diff] [blame] | 85 | } |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 86 | |
Alexei Nicoara | 7d69b1d | 2022-07-11 12:38:50 +0100 | [diff] [blame] | 87 | python_test_host { |
| 88 | name: "jsonmodify_test", |
| 89 | main: "jsonmodify_test.py", |
| 90 | srcs: [ |
| 91 | "jsonmodify_test.py", |
| 92 | "jsonmodify.py", |
| 93 | ], |
| 94 | test_suites: ["general-tests"], |
| 95 | } |
| 96 | |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 97 | python_binary_host { |
| 98 | name: "test_config_fixer", |
| 99 | main: "test_config_fixer.py", |
| 100 | srcs: [ |
| 101 | "test_config_fixer.py", |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 102 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 103 | libs: [ |
| 104 | "manifest_utils", |
| 105 | ], |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | python_test_host { |
| 109 | name: "test_config_fixer_test", |
| 110 | main: "test_config_fixer_test.py", |
| 111 | srcs: [ |
| 112 | "test_config_fixer_test.py", |
| 113 | "test_config_fixer.py", |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 114 | ], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 115 | libs: [ |
| 116 | "manifest_utils", |
| 117 | ], |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 118 | test_suites: ["general-tests"], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 119 | } |
Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 120 | |
| 121 | python_binary_host { |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 122 | name: "construct_context", |
| 123 | main: "construct_context.py", |
| 124 | srcs: [ |
| 125 | "construct_context.py", |
| 126 | ], |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 127 | libs: [ |
| 128 | "manifest_utils", |
| 129 | ], |
| 130 | } |
| 131 | |
| 132 | python_test_host { |
| 133 | name: "construct_context_test", |
| 134 | main: "construct_context_test.py", |
| 135 | srcs: [ |
| 136 | "construct_context_test.py", |
| 137 | "construct_context.py", |
| 138 | ], |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 139 | libs: [ |
| 140 | "manifest_utils", |
| 141 | ], |
| 142 | test_suites: ["general-tests"], |
| 143 | } |
| 144 | |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 145 | python_library_host { |
| 146 | name: "ninja_rsp", |
| 147 | srcs: ["ninja_rsp.py"], |
| 148 | } |
| 149 | |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 150 | python_binary_host { |
Jaewoong Jung | 5a42025 | 2021-04-19 17:58:22 -0700 | [diff] [blame] | 151 | name: "lint_project_xml", |
| 152 | main: "lint_project_xml.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 153 | srcs: [ |
Jaewoong Jung | 5a42025 | 2021-04-19 17:58:22 -0700 | [diff] [blame] | 154 | "lint_project_xml.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 155 | ], |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 156 | libs: ["ninja_rsp"], |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 157 | } |
| 158 | |
Jaewoong Jung | 7b93908 | 2021-04-20 07:23:25 -0700 | [diff] [blame] | 159 | python_test_host { |
| 160 | name: "lint_project_xml_test", |
| 161 | main: "lint_project_xml_test.py", |
| 162 | srcs: [ |
| 163 | "lint_project_xml_test.py", |
| 164 | "lint_project_xml.py", |
| 165 | ], |
| 166 | libs: ["ninja_rsp"], |
| 167 | test_suites: ["general-tests"], |
| 168 | } |
| 169 | |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 170 | python_binary_host { |
Cole Faust | bcc3d05 | 2022-09-01 15:20:00 -0700 | [diff] [blame] | 171 | name: "gen-kotlin-build-file", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 172 | main: "gen-kotlin-build-file.py", |
| 173 | srcs: [ |
| 174 | "gen-kotlin-build-file.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 175 | ], |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 176 | libs: ["ninja_rsp"], |
Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 177 | } |
Kiyoung Kim | 62abd12 | 2020-10-06 17:16:44 +0900 | [diff] [blame] | 178 | |
| 179 | python_binary_host { |
| 180 | name: "conv_linker_config", |
| 181 | srcs: [ |
| 182 | "conv_linker_config.py", |
| 183 | ], |
| 184 | version: { |
Kiyoung Kim | 62abd12 | 2020-10-06 17:16:44 +0900 | [diff] [blame] | 185 | py3: { |
Kiyoung Kim | 62abd12 | 2020-10-06 17:16:44 +0900 | [diff] [blame] | 186 | embedded_launcher: true, |
| 187 | }, |
| 188 | }, |
| 189 | libs: [ |
| 190 | "linker_config_proto", |
| 191 | ], |
| 192 | } |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 193 | |
Jooyung Han | f6fd4c2 | 2023-03-09 14:50:35 +0900 | [diff] [blame] | 194 | python_test_host { |
| 195 | name: "conv_linker_config_test", |
| 196 | main: "conv_linker_config_test.py", |
| 197 | srcs: [ |
| 198 | "conv_linker_config_test.py", |
| 199 | "conv_linker_config.py", |
| 200 | ], |
| 201 | libs: ["linker_config_proto"], |
| 202 | test_suites: ["general-tests"], |
| 203 | } |
| 204 | |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 205 | python_binary_host { |
| 206 | name: "get_clang_version", |
| 207 | main: "get_clang_version.py", |
| 208 | srcs: [ |
| 209 | "get_clang_version.py", |
| 210 | ], |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 211 | } |
Sasha Smundak | fe11851 | 2022-03-30 20:33:09 -0700 | [diff] [blame] | 212 | |
Jooyung Han | 7113b19 | 2022-09-20 17:00:27 +0900 | [diff] [blame] | 213 | python_binary_host { |
| 214 | name: "build-apex-bundle", |
| 215 | main: "build-apex-bundle.py", |
| 216 | srcs: [ |
| 217 | "build-apex-bundle.py", |
| 218 | ], |
| 219 | required: [ |
| 220 | "bundletool", |
| 221 | ], |
| 222 | } |
| 223 | |
Sasha Smundak | fe11851 | 2022-03-30 20:33:09 -0700 | [diff] [blame] | 224 | sh_binary_host { |
| 225 | name: "list_image", |
| 226 | src: "list_image.sh", |
| 227 | } |
Martin Geisler | 4e86b5e | 2022-05-13 16:01:35 +0200 | [diff] [blame] | 228 | |
| 229 | filegroup { |
| 230 | name: "rustfmt.toml", |
| 231 | srcs: ["rustfmt.toml"], |
| 232 | visibility: ["//visibility:public"], |
| 233 | } |
Romain Jobredeaux | 6d8716c | 2023-03-14 12:41:59 -0400 | [diff] [blame^] | 234 | |
| 235 | sh_binary_host { |
| 236 | name: "jars-to-module-info-java", |
| 237 | src: "jars-to-module-info-java.sh", |
| 238 | } |