blob: 8c91470bbd431c345e7d5471c7a18a7cdbc0d84e [file] [log] [blame]
Tao Bao30e31142019-04-09 00:12:30 -07001// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Tao Bao3c7b2a62019-08-07 12:24:20 -070015//
16// Module-specific defaults.
17//
18// For module X, if we need to build it both as a library and an executable:
19// - A default rule `releasetools_X_defaults` is created, which lists `srcs`, `libs` and
20// `required` properties.
21// - `python_library_host` and `python_binary_host` are created by listing
22// `releasetools_X_defaults` in their defaults.
23//
24
Bob Badour03905802021-02-12 21:42:54 -080025package {
26 default_applicable_licenses: ["Android-Apache-2.0"],
27}
28
Tao Bao3c7b2a62019-08-07 12:24:20 -070029python_defaults {
30 name: "releasetools_add_img_to_target_files_defaults",
31 srcs: [
32 "add_img_to_target_files.py",
33 ],
34 libs: [
Kelvin Zhang5f0fcee2021-01-19 15:30:46 -050035 "ota_metadata_proto",
36 "releasetools_apex_utils",
Tao Bao3c7b2a62019-08-07 12:24:20 -070037 "releasetools_build_image",
38 "releasetools_build_super_image",
39 "releasetools_common",
40 ],
41 required: [
42 "care_map_generator",
43 ],
44}
45
46python_defaults {
47 name: "releasetools_build_image_defaults",
48 srcs: [
49 "build_image.py",
50 ],
51 libs: [
52 "releasetools_common",
Inseob Kim9cda3972021-10-12 22:59:12 +090053 "releasetools_fsverity_metadata_generator",
Tao Bao3c7b2a62019-08-07 12:24:20 -070054 "releasetools_verity_utils",
55 ],
56 required: [
57 "blk_alloc_to_base_fs",
58 "e2fsck",
David Anderson94ad5bb2022-03-04 10:57:58 -080059 "fsck.erofs",
60 "img2simg",
61 "mkfs.erofs",
Yifan Hong77023452020-08-25 16:15:16 -070062 "mkuserimg_mke2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070063 "simg2img",
64 "tune2fs",
Cole Faustb0002082022-09-05 18:34:56 -070065 "mkf2fsuserimg",
Jaegeuk Kim1f50a362021-06-08 18:24:46 -070066 "fsck.f2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070067 ],
68}
69
70python_defaults {
71 name: "releasetools_build_super_image_defaults",
72 srcs: [
73 "build_super_image.py",
74 ],
75 libs: [
76 "releasetools_common",
77 ],
78}
79
80python_defaults {
81 name: "releasetools_img_from_target_files_defaults",
82 srcs: [
83 "img_from_target_files.py",
84 ],
85 libs: [
86 "releasetools_build_super_image",
87 "releasetools_common",
88 ],
89}
90
91python_defaults {
Yifan Honge3ba82c2019-08-21 13:29:30 -070092 name: "releasetools_check_target_files_vintf_defaults",
93 srcs: [
94 "check_target_files_vintf.py",
95 ],
96 libs: [
97 "releasetools_common",
98 ],
99 required: [
100 "checkvintf",
101 ],
102}
103
Tianjiea2076132020-08-19 17:25:32 -0700104python_library_host {
105 name: "ota_metadata_proto",
Tianjiea2076132020-08-19 17:25:32 -0700106 srcs: [
107 "ota_metadata.proto",
108 ],
109 proto: {
110 canonical_path_from_root: false,
111 },
112}
113
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400114cc_library_static {
115 name: "ota_metadata_proto_cc",
116 srcs: [
117 "ota_metadata.proto",
118 ],
119 host_supported: true,
120 recovery_available: true,
121 proto: {
122 canonical_path_from_root: false,
123 type: "lite",
124 export_proto_headers: true,
125 },
126}
127
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400128java_library_static {
129 name: "ota_metadata_proto_java",
130 host_supported: true,
131 proto: {
132 type: "nano",
133 },
134 srcs: ["ota_metadata.proto"],
135 sdk_version: "9",
136 target: {
137 android: {
138 jarjar_rules: "jarjar-rules.txt",
139 },
140 host: {
141 static_libs: ["libprotobuf-java-nano"],
142 },
143 },
144 visibility: ["//frameworks/base:__subpackages__"]
145}
146
Yifan Honge3ba82c2019-08-21 13:29:30 -0700147python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700148 name: "releasetools_ota_from_target_files_defaults",
149 srcs: [
150 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400151 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700152 "ota_from_target_files.py",
Tianjiea2076132020-08-19 17:25:32 -0700153 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700154 ],
155 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700156 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700157 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700158 "releasetools_common",
159 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000160 "apex_manifest",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400161 "care_map_proto_py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700162 "ota_utils_lib",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700163 ],
164 required: [
165 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700166 "checkvintf",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800167 "generate_gki_certificate",
jiajia tangf3f842b2021-03-17 21:49:44 +0800168 "minigzip",
Yifan Hong125d0b62020-09-24 17:07:03 -0700169 "lz4",
170 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000171 "unpack_bootimg",
172 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700173 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000174 target: {
175 darwin: {
176 // required module "brillo_update_payload" is disabled on darwin
177 enabled: false,
178 },
179 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700180}
181
182//
183// Host libraries.
184//
185
Tao Bao30e31142019-04-09 00:12:30 -0700186python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700187 name: "releasetools_add_img_to_target_files",
188 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700189 "releasetools_add_img_to_target_files_defaults",
190 ],
191}
192
193python_library_host {
194 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700195 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700196 "apex_utils.py",
197 ],
198 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000199 "apex_manifest",
200 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700201 "releasetools_common",
202 ],
203}
204
205python_library_host {
206 name: "releasetools_build_image",
207 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700208 "releasetools_build_image_defaults",
209 ],
210}
211
212python_library_host {
213 name: "releasetools_build_super_image",
214 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700215 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700216 ],
217}
218
219python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700220 name: "releasetools_check_target_files_vintf",
221 defaults: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700222 "releasetools_check_target_files_vintf_defaults",
223 ],
224}
225
226python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700227 name: "releasetools_common",
Tao Bao30e31142019-04-09 00:12:30 -0700228 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700229 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700230 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700231 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700232 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700233 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700234 ],
235 // Only the tools that are referenced directly are listed as required modules. For example,
236 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
237 required: [
changho.shin0f125362019-07-08 10:59:00 +0900238 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700239 "boot_signer",
240 "brotli",
241 "bsdiff",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800242 "generate_gki_certificate",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700243 "imgdiff",
244 "minigzip",
J. Avila98cd4cc2020-06-10 20:09:10 +0000245 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700246 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100247 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800248 "toybox",
249 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700250 ],
251}
252
253python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700254 name: "releasetools_img_from_target_files",
255 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700256 "releasetools_img_from_target_files_defaults",
257 ],
258}
259
260python_library_host {
261 name: "releasetools_ota_from_target_files",
262 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700263 "releasetools_ota_from_target_files_defaults",
264 ],
265}
266
267python_library_host {
Inseob Kim9cda3972021-10-12 22:59:12 +0900268 name: "releasetools_fsverity_metadata_generator",
269 srcs: [
270 "fsverity_metadata_generator.py",
271 ],
Inseob Kimf69346e2021-10-13 15:16:33 +0900272 libs: [
273 "fsverity_digests_proto_python",
Inseob Kim9cda3972021-10-12 22:59:12 +0900274 ],
275}
276
277python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700278 name: "releasetools_verity_utils",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700279 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700280 "verity_utils.py",
281 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700282 required: [
283 "append2simg",
284 "build_verity_metadata",
285 "build_verity_tree",
286 "fec",
287 ],
288}
289
Tao Bao3c7b2a62019-08-07 12:24:20 -0700290//
291// Host binaries.
292//
293
Tao Bao2bbb07c2019-05-07 13:12:21 -0700294python_defaults {
295 name: "releasetools_binary_defaults",
296 version: {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700297 py3: {
Cole Faustc76931f2021-11-04 16:59:39 -0700298 embedded_launcher: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700299 },
300 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900301 // TODO (b/140144201) Build imgdiff from releasetools_common
302 required: [
303 "aapt2",
304 "boot_signer",
305 "brotli",
306 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000307 "deapexer",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800308 "generate_gki_certificate",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900309 "imgdiff",
310 "minigzip",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000311 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900312 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000313 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800314 "toybox",
315 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900316 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700317}
318
319python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700320 name: "add_img_to_target_files",
321 defaults: [
322 "releasetools_binary_defaults",
323 "releasetools_add_img_to_target_files_defaults",
324 ],
325}
326
Kelvin Zhang197772f2022-04-26 15:15:11 -0700327python_library_host {
328 name: "ota_utils_lib",
329 srcs: [
330 "ota_utils.py",
331 "payload_signer.py",
332 ],
333}
334
335python_binary_host {
336 name: "merge_ota",
337 version: {
338 py3: {
339 embedded_launcher: true,
340 },
341 },
342 srcs: [
343 "merge_ota.py",
344 ],
345 libs: [
346 "ota_metadata_proto",
347 "update_payload",
348 "care_map_proto_py",
349 "releasetools_common",
350 "ota_utils_lib",
351 ],
352}
353
Tao Bao3c7b2a62019-08-07 12:24:20 -0700354python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700355 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700356 defaults: [
357 "releasetools_binary_defaults",
358 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700359 ],
360}
361
362python_binary_host {
363 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700364 defaults: [
365 "releasetools_binary_defaults",
366 "releasetools_build_super_image_defaults",
367 ],
368}
369
370python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000371 name: "check_partition_sizes",
372 srcs: [
373 "check_partition_sizes.py",
374 ],
375 libs: [
376 "releasetools_common",
377 ],
378 defaults: [
379 "releasetools_binary_defaults",
380 ],
381}
382
383python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700384 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700385 defaults: ["releasetools_binary_defaults"],
386 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700387 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700388 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700389 libs: [
390 "releasetools_common",
391 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700392 required: [
393 "delta_generator",
394 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000395 target: {
396 darwin: {
397 // required module "delta_generator" is disabled on darwin
398 enabled: false,
399 },
400 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700401}
402
403python_binary_host {
404 name: "check_target_files_signatures",
405 defaults: ["releasetools_binary_defaults"],
406 srcs: [
407 "check_target_files_signatures.py",
408 ],
409 libs: [
410 "releasetools_common",
411 ],
412 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700413 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700414 ],
415}
416
417python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700418 name: "check_target_files_vintf",
419 defaults: [
420 "releasetools_binary_defaults",
421 "releasetools_check_target_files_vintf_defaults"
422 ],
423}
424
425python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700426 name: "img_from_target_files",
427 defaults: [
428 "releasetools_binary_defaults",
429 "releasetools_img_from_target_files_defaults",
430 ],
Tao Bao30e31142019-04-09 00:12:30 -0700431}
432
Daniel Normanb8d52a22020-10-26 17:55:00 -0700433python_defaults {
434 name: "releasetools_find_shareduid_violation_defaults",
435 srcs: [
436 "find_shareduid_violation.py",
437 ],
438 libs: [
439 "releasetools_common",
440 ],
441}
442
443python_binary_host {
444 name: "find_shareduid_violation",
445 defaults: [
446 "releasetools_binary_defaults",
447 "releasetools_find_shareduid_violation_defaults",
448 ],
449}
450
451python_library_host {
452 name: "releasetools_find_shareduid_violation",
453 defaults: [
454 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700455 ],
456}
457
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700458python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700459 name: "make_recovery_patch",
460 defaults: ["releasetools_binary_defaults"],
461 srcs: [
462 "make_recovery_patch.py",
463 ],
464 libs: [
465 "releasetools_common",
466 ],
467}
468
469python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700470 name: "ota_from_target_files",
471 defaults: [
472 "releasetools_binary_defaults",
473 "releasetools_ota_from_target_files_defaults",
474 ],
475}
476
477python_binary_host {
478 name: "ota_package_parser",
479 defaults: ["releasetools_binary_defaults"],
480 srcs: [
481 "ota_package_parser.py",
482 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700483 ],
484}
485
Tao Baoe11a4602019-08-06 23:21:23 -0700486python_binary_host {
487 name: "sparse_img",
488 defaults: ["releasetools_binary_defaults"],
489 srcs: [
490 "rangelib.py",
491 "sparse_img.py",
492 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700493}
494
Tao Bao3c7b2a62019-08-07 12:24:20 -0700495python_binary_host {
496 name: "sign_apex",
497 defaults: ["releasetools_binary_defaults"],
498 srcs: [
499 "sign_apex.py",
500 ],
501 libs: [
502 "releasetools_apex_utils",
503 "releasetools_common",
504 ],
505}
506
507python_binary_host {
508 name: "sign_target_files_apks",
509 defaults: ["releasetools_binary_defaults"],
510 srcs: [
511 "sign_target_files_apks.py",
512 ],
513 libs: [
514 "releasetools_add_img_to_target_files",
515 "releasetools_apex_utils",
516 "releasetools_common",
517 ],
518}
519
520python_binary_host {
521 name: "validate_target_files",
522 defaults: ["releasetools_binary_defaults"],
523 srcs: [
524 "validate_target_files.py",
525 ],
526 libs: [
527 "releasetools_common",
528 ],
529}
530
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900531python_binary_host {
532 name: "verity_utils",
533 defaults: ["releasetools_binary_defaults"],
534 srcs: [
535 "verity_utils.py",
536 ],
537 libs: [
538 "releasetools_common",
539 ],
540 required: [
541 "append2simg",
542 "build_verity_metadata",
543 "build_verity_tree",
544 "fec",
545 ],
546}
547
Inseob Kim2d034932021-12-13 14:04:00 +0900548python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900549 name: "fsverity_metadata_generator",
Inseob Kim293112d2022-02-16 11:22:03 +0900550 defaults: ["releasetools_binary_defaults"],
Inseob Kim135c1f12022-01-06 17:22:07 +0900551 srcs: [
552 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900553 ],
554 required: [
555 "fsverity",
556 ],
557}
558
Tao Bao3c7b2a62019-08-07 12:24:20 -0700559//
560// Tests.
561//
562
Tao Baoca82fc92019-05-01 21:58:03 -0700563python_defaults {
564 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700565 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700566 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000567 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700568 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700569 "make_recovery_patch.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700570 "ota_package_parser.py",
571 "sign_apex.py",
572 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700573 "validate_target_files.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700574 "merge_ota.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -0800575 ":releasetools_merge_sources",
576 ":releasetools_merge_tests",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700577
Tao Bao30e31142019-04-09 00:12:30 -0700578 "test_*.py",
579 ],
580 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700581 "releasetools_add_img_to_target_files",
582 "releasetools_apex_utils",
583 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700584 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700585 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700586 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700587 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700588 "releasetools_img_from_target_files",
589 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700590 "releasetools_verity_utils",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700591 "update_payload",
Tao Bao30e31142019-04-09 00:12:30 -0700592 ],
593 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700594 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000595 ":com.android.apex.compressed.v1",
596 ":com.android.apex.compressed.v1_original",
Tao Bao30e31142019-04-09 00:12:30 -0700597 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000598 target: {
599 darwin: {
600 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
601 enabled: false,
602 },
603 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000604 required: [
605 "deapexer",
606 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700607}
608
609python_test_host {
610 name: "releasetools_test",
611 defaults: ["releasetools_test_defaults"],
612 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700613 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
614 // host, because the test executable won't be able to find the needed libs via its
615 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800616 test_options: {
617 unit_test: true,
618 },
Tao Bao30e31142019-04-09 00:12:30 -0700619}