blob: 33a3d5ce952a83790e125b959ea592f3f5e2c6b9 [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",
Kelvin Zhang1caead02022-09-23 10:06:03 -070040 "libavbtool",
Tao Bao3c7b2a62019-08-07 12:24:20 -070041 ],
42 required: [
43 "care_map_generator",
44 ],
45}
46
47python_defaults {
48 name: "releasetools_build_image_defaults",
49 srcs: [
50 "build_image.py",
51 ],
52 libs: [
53 "releasetools_common",
Inseob Kim9cda3972021-10-12 22:59:12 +090054 "releasetools_fsverity_metadata_generator",
Tao Bao3c7b2a62019-08-07 12:24:20 -070055 "releasetools_verity_utils",
56 ],
57 required: [
58 "blk_alloc_to_base_fs",
59 "e2fsck",
David Anderson94ad5bb2022-03-04 10:57:58 -080060 "fsck.erofs",
61 "img2simg",
62 "mkfs.erofs",
Yifan Hong77023452020-08-25 16:15:16 -070063 "mkuserimg_mke2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070064 "simg2img",
65 "tune2fs",
Cole Faustb0002082022-09-05 18:34:56 -070066 "mkf2fsuserimg",
Jaegeuk Kim1f50a362021-06-08 18:24:46 -070067 "fsck.f2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070068 ],
69}
70
71python_defaults {
72 name: "releasetools_build_super_image_defaults",
73 srcs: [
74 "build_super_image.py",
75 ],
76 libs: [
77 "releasetools_common",
78 ],
79}
80
81python_defaults {
82 name: "releasetools_img_from_target_files_defaults",
83 srcs: [
84 "img_from_target_files.py",
85 ],
86 libs: [
87 "releasetools_build_super_image",
88 "releasetools_common",
89 ],
90}
91
92python_defaults {
Yifan Honge3ba82c2019-08-21 13:29:30 -070093 name: "releasetools_check_target_files_vintf_defaults",
94 srcs: [
95 "check_target_files_vintf.py",
96 ],
97 libs: [
Jooyung Haneb118212022-10-17 18:07:28 +090098 "apex_manifest",
Yifan Honge3ba82c2019-08-21 13:29:30 -070099 "releasetools_common",
100 ],
101 required: [
102 "checkvintf",
Rob Seymour3f1c9572022-07-28 21:56:28 +0000103 "deapexer",
104 "dump_apex_info",
Yifan Honge3ba82c2019-08-21 13:29:30 -0700105 ],
106}
107
Tianjiea2076132020-08-19 17:25:32 -0700108python_library_host {
109 name: "ota_metadata_proto",
Tianjiea2076132020-08-19 17:25:32 -0700110 srcs: [
111 "ota_metadata.proto",
112 ],
113 proto: {
114 canonical_path_from_root: false,
115 },
116}
117
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400118cc_library_static {
119 name: "ota_metadata_proto_cc",
120 srcs: [
121 "ota_metadata.proto",
122 ],
123 host_supported: true,
124 recovery_available: true,
125 proto: {
126 canonical_path_from_root: false,
127 type: "lite",
128 export_proto_headers: true,
129 },
130}
131
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400132java_library_static {
133 name: "ota_metadata_proto_java",
134 host_supported: true,
135 proto: {
136 type: "nano",
137 },
138 srcs: ["ota_metadata.proto"],
139 sdk_version: "9",
140 target: {
141 android: {
142 jarjar_rules: "jarjar-rules.txt",
143 },
144 host: {
145 static_libs: ["libprotobuf-java-nano"],
146 },
147 },
148 visibility: ["//frameworks/base:__subpackages__"]
149}
150
Yifan Honge3ba82c2019-08-21 13:29:30 -0700151python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700152 name: "releasetools_ota_from_target_files_defaults",
153 srcs: [
154 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400155 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700156 "ota_from_target_files.py",
Tianjiea2076132020-08-19 17:25:32 -0700157 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700158 ],
159 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700160 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700161 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700162 "releasetools_common",
163 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000164 "apex_manifest",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400165 "care_map_proto_py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700166 "ota_utils_lib",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700167 ],
168 required: [
169 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700170 "checkvintf",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800171 "generate_gki_certificate",
jiajia tangf3f842b2021-03-17 21:49:44 +0800172 "minigzip",
Yifan Hong125d0b62020-09-24 17:07:03 -0700173 "lz4",
174 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000175 "unpack_bootimg",
176 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700177 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000178 target: {
179 darwin: {
180 // required module "brillo_update_payload" is disabled on darwin
181 enabled: false,
182 },
183 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700184}
185
186//
187// Host libraries.
188//
189
Tao Bao30e31142019-04-09 00:12:30 -0700190python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700191 name: "releasetools_add_img_to_target_files",
192 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700193 "releasetools_add_img_to_target_files_defaults",
194 ],
195}
196
197python_library_host {
198 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700199 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700200 "apex_utils.py",
201 ],
202 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000203 "apex_manifest",
204 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700205 "releasetools_common",
206 ],
207}
208
209python_library_host {
210 name: "releasetools_build_image",
211 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700212 "releasetools_build_image_defaults",
213 ],
214}
215
216python_library_host {
217 name: "releasetools_build_super_image",
218 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700219 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700220 ],
221}
222
223python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700224 name: "releasetools_check_target_files_vintf",
225 defaults: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700226 "releasetools_check_target_files_vintf_defaults",
227 ],
228}
229
230python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700231 name: "releasetools_common",
Tao Bao30e31142019-04-09 00:12:30 -0700232 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700233 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700234 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700235 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700236 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700237 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700238 ],
239 // Only the tools that are referenced directly are listed as required modules. For example,
240 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
241 required: [
changho.shin0f125362019-07-08 10:59:00 +0900242 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700243 "boot_signer",
244 "brotli",
245 "bsdiff",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800246 "generate_gki_certificate",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700247 "imgdiff",
248 "minigzip",
J. Avila98cd4cc2020-06-10 20:09:10 +0000249 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700250 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100251 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800252 "toybox",
253 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700254 ],
255}
256
257python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700258 name: "releasetools_img_from_target_files",
259 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700260 "releasetools_img_from_target_files_defaults",
261 ],
262}
263
264python_library_host {
265 name: "releasetools_ota_from_target_files",
266 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700267 "releasetools_ota_from_target_files_defaults",
268 ],
269}
270
271python_library_host {
Inseob Kim9cda3972021-10-12 22:59:12 +0900272 name: "releasetools_fsverity_metadata_generator",
273 srcs: [
274 "fsverity_metadata_generator.py",
275 ],
Inseob Kimf69346e2021-10-13 15:16:33 +0900276 libs: [
277 "fsverity_digests_proto_python",
Inseob Kim9cda3972021-10-12 22:59:12 +0900278 ],
279}
280
281python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700282 name: "releasetools_verity_utils",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700283 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700284 "verity_utils.py",
285 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700286 required: [
287 "append2simg",
288 "build_verity_metadata",
289 "build_verity_tree",
290 "fec",
291 ],
292}
293
Tao Bao3c7b2a62019-08-07 12:24:20 -0700294//
295// Host binaries.
296//
297
Tao Bao2bbb07c2019-05-07 13:12:21 -0700298python_defaults {
299 name: "releasetools_binary_defaults",
300 version: {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700301 py3: {
Cole Faustc76931f2021-11-04 16:59:39 -0700302 embedded_launcher: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700303 },
304 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900305 // TODO (b/140144201) Build imgdiff from releasetools_common
306 required: [
307 "aapt2",
308 "boot_signer",
309 "brotli",
310 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000311 "deapexer",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800312 "generate_gki_certificate",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900313 "imgdiff",
314 "minigzip",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000315 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900316 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000317 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800318 "toybox",
319 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900320 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700321}
322
323python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700324 name: "add_img_to_target_files",
325 defaults: [
326 "releasetools_binary_defaults",
327 "releasetools_add_img_to_target_files_defaults",
328 ],
329}
330
Kelvin Zhang197772f2022-04-26 15:15:11 -0700331python_library_host {
332 name: "ota_utils_lib",
333 srcs: [
334 "ota_utils.py",
335 "payload_signer.py",
336 ],
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700337 libs: [
338 "releasetools_common",
339 ],
Kelvin Zhang197772f2022-04-26 15:15:11 -0700340}
341
342python_binary_host {
343 name: "merge_ota",
344 version: {
345 py3: {
346 embedded_launcher: true,
347 },
348 },
349 srcs: [
350 "merge_ota.py",
351 ],
352 libs: [
353 "ota_metadata_proto",
354 "update_payload",
355 "care_map_proto_py",
356 "releasetools_common",
357 "ota_utils_lib",
358 ],
359}
360
Tao Bao3c7b2a62019-08-07 12:24:20 -0700361python_binary_host {
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700362 name: "create_brick_ota",
363 version: {
364 py3: {
365 embedded_launcher: true,
366 },
367 },
368 srcs: [
369 "create_brick_ota.py",
370 ],
371 libs: [
372 "ota_utils_lib",
373 ],
374}
375
376python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700377 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700378 defaults: [
379 "releasetools_binary_defaults",
380 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700381 ],
382}
383
384python_binary_host {
385 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700386 defaults: [
387 "releasetools_binary_defaults",
388 "releasetools_build_super_image_defaults",
389 ],
390}
391
392python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000393 name: "check_partition_sizes",
394 srcs: [
395 "check_partition_sizes.py",
396 ],
397 libs: [
398 "releasetools_common",
399 ],
400 defaults: [
401 "releasetools_binary_defaults",
402 ],
403}
404
405python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700406 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700407 defaults: ["releasetools_binary_defaults"],
408 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700409 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700410 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700411 libs: [
412 "releasetools_common",
413 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700414 required: [
415 "delta_generator",
416 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000417 target: {
418 darwin: {
419 // required module "delta_generator" is disabled on darwin
420 enabled: false,
421 },
422 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700423}
424
425python_binary_host {
426 name: "check_target_files_signatures",
427 defaults: ["releasetools_binary_defaults"],
428 srcs: [
429 "check_target_files_signatures.py",
430 ],
431 libs: [
432 "releasetools_common",
433 ],
434 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700435 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700436 ],
437}
438
439python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700440 name: "check_target_files_vintf",
441 defaults: [
442 "releasetools_binary_defaults",
443 "releasetools_check_target_files_vintf_defaults"
444 ],
445}
446
447python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700448 name: "img_from_target_files",
449 defaults: [
450 "releasetools_binary_defaults",
451 "releasetools_img_from_target_files_defaults",
452 ],
Tao Bao30e31142019-04-09 00:12:30 -0700453}
454
Daniel Normanb8d52a22020-10-26 17:55:00 -0700455python_defaults {
456 name: "releasetools_find_shareduid_violation_defaults",
457 srcs: [
458 "find_shareduid_violation.py",
459 ],
460 libs: [
461 "releasetools_common",
462 ],
463}
464
465python_binary_host {
466 name: "find_shareduid_violation",
467 defaults: [
468 "releasetools_binary_defaults",
469 "releasetools_find_shareduid_violation_defaults",
470 ],
471}
472
473python_library_host {
474 name: "releasetools_find_shareduid_violation",
475 defaults: [
476 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700477 ],
478}
479
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700480python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700481 name: "make_recovery_patch",
482 defaults: ["releasetools_binary_defaults"],
483 srcs: [
484 "make_recovery_patch.py",
485 ],
486 libs: [
487 "releasetools_common",
488 ],
489}
490
491python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700492 name: "ota_from_target_files",
493 defaults: [
494 "releasetools_binary_defaults",
495 "releasetools_ota_from_target_files_defaults",
496 ],
497}
498
499python_binary_host {
500 name: "ota_package_parser",
501 defaults: ["releasetools_binary_defaults"],
502 srcs: [
503 "ota_package_parser.py",
504 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700505 ],
506}
507
Tao Baoe11a4602019-08-06 23:21:23 -0700508python_binary_host {
509 name: "sparse_img",
510 defaults: ["releasetools_binary_defaults"],
511 srcs: [
512 "rangelib.py",
513 "sparse_img.py",
514 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700515}
516
Tao Bao3c7b2a62019-08-07 12:24:20 -0700517python_binary_host {
518 name: "sign_apex",
519 defaults: ["releasetools_binary_defaults"],
520 srcs: [
521 "sign_apex.py",
522 ],
523 libs: [
524 "releasetools_apex_utils",
525 "releasetools_common",
526 ],
527}
528
529python_binary_host {
530 name: "sign_target_files_apks",
531 defaults: ["releasetools_binary_defaults"],
532 srcs: [
533 "sign_target_files_apks.py",
534 ],
535 libs: [
536 "releasetools_add_img_to_target_files",
537 "releasetools_apex_utils",
538 "releasetools_common",
539 ],
540}
541
542python_binary_host {
543 name: "validate_target_files",
544 defaults: ["releasetools_binary_defaults"],
545 srcs: [
546 "validate_target_files.py",
547 ],
548 libs: [
549 "releasetools_common",
550 ],
551}
552
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900553python_binary_host {
554 name: "verity_utils",
555 defaults: ["releasetools_binary_defaults"],
556 srcs: [
557 "verity_utils.py",
558 ],
559 libs: [
560 "releasetools_common",
561 ],
562 required: [
563 "append2simg",
564 "build_verity_metadata",
565 "build_verity_tree",
566 "fec",
567 ],
568}
569
Inseob Kim2d034932021-12-13 14:04:00 +0900570python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900571 name: "fsverity_metadata_generator",
Inseob Kim293112d2022-02-16 11:22:03 +0900572 defaults: ["releasetools_binary_defaults"],
Inseob Kim135c1f12022-01-06 17:22:07 +0900573 srcs: [
574 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900575 ],
576 required: [
577 "fsverity",
578 ],
579}
580
Tao Bao3c7b2a62019-08-07 12:24:20 -0700581//
582// Tests.
583//
584
Tao Baoca82fc92019-05-01 21:58:03 -0700585python_defaults {
586 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700587 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700588 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000589 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700590 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700591 "make_recovery_patch.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700592 "ota_package_parser.py",
593 "sign_apex.py",
594 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700595 "validate_target_files.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700596 "merge_ota.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -0800597 ":releasetools_merge_sources",
598 ":releasetools_merge_tests",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700599
Tao Bao30e31142019-04-09 00:12:30 -0700600 "test_*.py",
601 ],
602 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700603 "releasetools_add_img_to_target_files",
604 "releasetools_apex_utils",
605 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700606 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700607 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700608 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700609 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700610 "releasetools_img_from_target_files",
611 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700612 "releasetools_verity_utils",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700613 "update_payload",
Tao Bao30e31142019-04-09 00:12:30 -0700614 ],
615 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700616 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000617 ":com.android.apex.compressed.v1",
618 ":com.android.apex.compressed.v1_original",
Tao Bao30e31142019-04-09 00:12:30 -0700619 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000620 target: {
621 darwin: {
622 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
623 enabled: false,
624 },
625 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000626 required: [
627 "deapexer",
628 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700629}
630
631python_test_host {
632 name: "releasetools_test",
633 defaults: ["releasetools_test_defaults"],
634 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700635 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
636 // host, because the test executable won't be able to find the needed libs via its
637 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800638 test_options: {
639 unit_test: true,
640 },
Tao Bao30e31142019-04-09 00:12:30 -0700641}