1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5python_binary_host { 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 21python_binary_host { 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 }, 35 libs: [ 36 "manifest_utils", 37 ], 38} 39 40python_test_host { 41 name: "manifest_fixer_test", 42 main: "manifest_fixer_test.py", 43 srcs: [ 44 "manifest_fixer_test.py", 45 "manifest_fixer.py", 46 ], 47 version: { 48 py2: { 49 enabled: true, 50 }, 51 py3: { 52 enabled: false, 53 }, 54 }, 55 libs: [ 56 "manifest_utils", 57 ], 58 test_options: { 59 unit_test: true, 60 }, 61} 62 63python_library_host { 64 name: "manifest_utils", 65 srcs: [ 66 "manifest.py", 67 ], 68 version: { 69 py2: { 70 enabled: true, 71 }, 72 py3: { 73 enabled: false, 74 }, 75 }, 76} 77 78python_binary_host { 79 name: "manifest_check", 80 main: "manifest_check.py", 81 srcs: [ 82 "manifest_check.py", 83 ], 84 version: { 85 py2: { 86 enabled: true, 87 }, 88 py3: { 89 enabled: false, 90 }, 91 }, 92 libs: [ 93 "manifest_utils", 94 ], 95} 96 97python_test_host { 98 name: "manifest_check_test", 99 main: "manifest_check_test.py", 100 srcs: [ 101 "manifest_check_test.py", 102 "manifest_check.py", 103 ], 104 version: { 105 py2: { 106 enabled: true, 107 }, 108 py3: { 109 enabled: false, 110 }, 111 }, 112 libs: [ 113 "manifest_utils", 114 ], 115 test_options: { 116 unit_test: true, 117 }, 118} 119 120python_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 }, 133 }, 134} 135 136python_binary_host { 137 name: "test_config_fixer", 138 main: "test_config_fixer.py", 139 srcs: [ 140 "test_config_fixer.py", 141 ], 142 version: { 143 py2: { 144 enabled: true, 145 }, 146 py3: { 147 enabled: false, 148 }, 149 }, 150 libs: [ 151 "manifest_utils", 152 ], 153} 154 155python_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", 161 ], 162 version: { 163 py2: { 164 enabled: true, 165 }, 166 py3: { 167 enabled: false, 168 }, 169 }, 170 libs: [ 171 "manifest_utils", 172 ], 173 test_suites: ["general-tests"], 174} 175 176python_binary_host { 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 195python_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 216python_library_host { 217 name: "ninja_rsp", 218 srcs: ["ninja_rsp.py"], 219} 220 221python_binary_host { 222 name: "lint_project_xml", 223 main: "lint_project_xml.py", 224 srcs: [ 225 "lint_project_xml.py", 226 ], 227 libs: ["ninja_rsp"], 228} 229 230python_test_host { 231 name: "lint_project_xml_test", 232 main: "lint_project_xml_test.py", 233 srcs: [ 234 "lint_project_xml_test.py", 235 "lint_project_xml.py", 236 ], 237 libs: ["ninja_rsp"], 238 test_suites: ["general-tests"], 239} 240 241python_binary_host { 242 name: "gen-kotlin-build-file.py", 243 main: "gen-kotlin-build-file.py", 244 srcs: [ 245 "gen-kotlin-build-file.py", 246 ], 247 libs: ["ninja_rsp"], 248} 249 250python_binary_host { 251 name: "conv_linker_config", 252 srcs: [ 253 "conv_linker_config.py", 254 ], 255 version: { 256 py2: { 257 enabled: false, 258 }, 259 py3: { 260 enabled: true, 261 embedded_launcher: true, 262 }, 263 }, 264 libs: [ 265 "linker_config_proto", 266 ], 267} 268