Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 5 | python_binary_host { |
Paul Duffin | 9a89a2a | 2020-10-28 19:20:06 +0000 | [diff] [blame] | 6 | name: "check_boot_jars", |
| 7 | main: "check_boot_jars/check_boot_jars.py", |
| 8 | srcs: [ |
| 9 | "check_boot_jars/check_boot_jars.py", |
| 10 | ], |
| 11 | version: { |
| 12 | py2: { |
| 13 | enabled: true, |
| 14 | }, |
| 15 | py3: { |
| 16 | enabled: false, |
| 17 | }, |
| 18 | }, |
| 19 | } |
| 20 | |
| 21 | python_binary_host { |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 22 | name: "manifest_fixer", |
| 23 | main: "manifest_fixer.py", |
| 24 | srcs: [ |
| 25 | "manifest_fixer.py", |
| 26 | ], |
| 27 | version: { |
| 28 | py2: { |
| 29 | enabled: true, |
| 30 | }, |
| 31 | py3: { |
| 32 | enabled: false, |
| 33 | }, |
| 34 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 35 | libs: [ |
| 36 | "manifest_utils", |
| 37 | ], |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | python_test_host { |
| 41 | name: "manifest_fixer_test", |
| 42 | main: "manifest_fixer_test.py", |
| 43 | srcs: [ |
| 44 | "manifest_fixer_test.py", |
| 45 | "manifest_fixer.py", |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 46 | ], |
| 47 | version: { |
| 48 | py2: { |
| 49 | enabled: true, |
| 50 | }, |
| 51 | py3: { |
| 52 | enabled: false, |
| 53 | }, |
| 54 | }, |
| 55 | libs: [ |
| 56 | "manifest_utils", |
| 57 | ], |
Julien Desprez | 2dc86b2 | 2021-03-19 17:16:09 +0000 | [diff] [blame] | 58 | test_options: { |
| 59 | unit_test: true, |
| 60 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | python_library_host { |
| 64 | name: "manifest_utils", |
| 65 | srcs: [ |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 66 | "manifest.py", |
| 67 | ], |
| 68 | version: { |
| 69 | py2: { |
| 70 | enabled: true, |
| 71 | }, |
| 72 | py3: { |
| 73 | enabled: false, |
| 74 | }, |
| 75 | }, |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | python_binary_host { |
| 79 | name: "manifest_check", |
| 80 | main: "manifest_check.py", |
| 81 | srcs: [ |
| 82 | "manifest_check.py", |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 83 | ], |
| 84 | version: { |
| 85 | py2: { |
| 86 | enabled: true, |
| 87 | }, |
| 88 | py3: { |
| 89 | enabled: false, |
| 90 | }, |
| 91 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 92 | libs: [ |
| 93 | "manifest_utils", |
| 94 | ], |
Colin Cross | 7211910 | 2019-05-20 13:14:18 -0700 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | python_test_host { |
| 98 | name: "manifest_check_test", |
| 99 | main: "manifest_check_test.py", |
| 100 | srcs: [ |
| 101 | "manifest_check_test.py", |
| 102 | "manifest_check.py", |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 103 | ], |
| 104 | version: { |
| 105 | py2: { |
| 106 | enabled: true, |
| 107 | }, |
| 108 | py3: { |
| 109 | enabled: false, |
| 110 | }, |
| 111 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 112 | libs: [ |
| 113 | "manifest_utils", |
| 114 | ], |
Julien Desprez | 2dc86b2 | 2021-03-19 17:16:09 +0000 | [diff] [blame] | 115 | test_options: { |
| 116 | unit_test: true, |
| 117 | }, |
Colin Cross | 4af387c | 2019-05-16 13:16:29 -0700 | [diff] [blame] | 118 | } |
Jooyung Han | 04329f1 | 2019-08-01 23:35:08 +0900 | [diff] [blame] | 119 | |
| 120 | python_binary_host { |
| 121 | name: "jsonmodify", |
| 122 | main: "jsonmodify.py", |
| 123 | srcs: [ |
| 124 | "jsonmodify.py", |
| 125 | ], |
| 126 | version: { |
| 127 | py2: { |
| 128 | enabled: true, |
| 129 | }, |
| 130 | py3: { |
| 131 | enabled: false, |
| 132 | }, |
Thiébaud Weksteen | 5e291c2 | 2020-06-26 14:04:00 +0200 | [diff] [blame] | 133 | }, |
Jooyung Han | 04329f1 | 2019-08-01 23:35:08 +0900 | [diff] [blame] | 134 | } |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 135 | |
| 136 | python_binary_host { |
| 137 | name: "test_config_fixer", |
| 138 | main: "test_config_fixer.py", |
| 139 | srcs: [ |
| 140 | "test_config_fixer.py", |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 141 | ], |
| 142 | version: { |
| 143 | py2: { |
| 144 | enabled: true, |
| 145 | }, |
| 146 | py3: { |
| 147 | enabled: false, |
| 148 | }, |
| 149 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 150 | libs: [ |
| 151 | "manifest_utils", |
| 152 | ], |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 153 | } |
| 154 | |
| 155 | python_test_host { |
| 156 | name: "test_config_fixer_test", |
| 157 | main: "test_config_fixer_test.py", |
| 158 | srcs: [ |
| 159 | "test_config_fixer_test.py", |
| 160 | "test_config_fixer.py", |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 161 | ], |
| 162 | version: { |
| 163 | py2: { |
| 164 | enabled: true, |
| 165 | }, |
| 166 | py3: { |
| 167 | enabled: false, |
| 168 | }, |
| 169 | }, |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 170 | libs: [ |
| 171 | "manifest_utils", |
| 172 | ], |
Jaewoong Jung | e5cd4e1 | 2019-11-22 14:34:55 -0800 | [diff] [blame] | 173 | test_suites: ["general-tests"], |
Baligh Uddin | 3be82c0 | 2020-02-19 21:16:31 -0800 | [diff] [blame] | 174 | } |
Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 175 | |
| 176 | python_binary_host { |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 177 | name: "construct_context", |
| 178 | main: "construct_context.py", |
| 179 | srcs: [ |
| 180 | "construct_context.py", |
| 181 | ], |
| 182 | version: { |
| 183 | py2: { |
| 184 | enabled: true, |
| 185 | }, |
| 186 | py3: { |
| 187 | enabled: false, |
| 188 | }, |
| 189 | }, |
| 190 | libs: [ |
| 191 | "manifest_utils", |
| 192 | ], |
| 193 | } |
| 194 | |
| 195 | python_test_host { |
| 196 | name: "construct_context_test", |
| 197 | main: "construct_context_test.py", |
| 198 | srcs: [ |
| 199 | "construct_context_test.py", |
| 200 | "construct_context.py", |
| 201 | ], |
| 202 | version: { |
| 203 | py2: { |
| 204 | enabled: true, |
| 205 | }, |
| 206 | py3: { |
| 207 | enabled: false, |
| 208 | }, |
| 209 | }, |
| 210 | libs: [ |
| 211 | "manifest_utils", |
| 212 | ], |
| 213 | test_suites: ["general-tests"], |
| 214 | } |
| 215 | |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 216 | python_library_host { |
| 217 | name: "ninja_rsp", |
| 218 | srcs: ["ninja_rsp.py"], |
| 219 | } |
| 220 | |
Ulya Trafimovich | 5f364b6 | 2020-06-30 12:39:01 +0100 | [diff] [blame] | 221 | python_binary_host { |
Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 222 | name: "lint-project-xml", |
| 223 | main: "lint-project-xml.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 224 | srcs: [ |
| 225 | "lint-project-xml.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 226 | ], |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 227 | libs: ["ninja_rsp"], |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 228 | } |
| 229 | |
| 230 | python_binary_host { |
| 231 | name: "gen-kotlin-build-file.py", |
| 232 | main: "gen-kotlin-build-file.py", |
| 233 | srcs: [ |
| 234 | "gen-kotlin-build-file.py", |
Colin Cross | 9b1aa0c | 2020-06-25 17:12:28 -0700 | [diff] [blame] | 235 | ], |
Thiébaud Weksteen | 713db48 | 2021-02-10 14:03:27 +0100 | [diff] [blame] | 236 | libs: ["ninja_rsp"], |
Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 237 | } |
Kiyoung Kim | 62abd12 | 2020-10-06 17:16:44 +0900 | [diff] [blame] | 238 | |
| 239 | python_binary_host { |
| 240 | name: "conv_linker_config", |
| 241 | srcs: [ |
| 242 | "conv_linker_config.py", |
| 243 | ], |
| 244 | version: { |
| 245 | py2: { |
| 246 | enabled: false, |
| 247 | }, |
| 248 | py3: { |
| 249 | enabled: true, |
| 250 | embedded_launcher: true, |
| 251 | }, |
| 252 | }, |
| 253 | libs: [ |
| 254 | "linker_config_proto", |
| 255 | ], |
| 256 | } |
Artur Satayev | ca6fe34 | 2021-03-23 15:23:00 +0000 | [diff] [blame] | 257 | |
| 258 | python_binary_host { |
| 259 | name: "conv_classpaths_proto", |
| 260 | srcs: [ |
| 261 | "conv_classpaths_proto.py", |
| 262 | ], |
| 263 | version: { |
| 264 | py2: { |
| 265 | enabled: false, |
| 266 | }, |
| 267 | py3: { |
| 268 | enabled: true, |
| 269 | embedded_launcher: true, |
| 270 | }, |
| 271 | }, |
| 272 | libs: [ |
| 273 | "classpaths_proto_python", |
| 274 | ], |
| 275 | } |