blob: 5a7cc76bbc9fd8720b3e57e1f14ead523107a06e [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: [
Jooyung Hanc9542ab2023-06-27 16:12:32 +0900102 "apexd_host",
Yifan Honge3ba82c2019-08-21 13:29:30 -0700103 "checkvintf",
104 ],
105}
106
Tianjiea2076132020-08-19 17:25:32 -0700107python_library_host {
108 name: "ota_metadata_proto",
Tianjiea2076132020-08-19 17:25:32 -0700109 srcs: [
110 "ota_metadata.proto",
111 ],
112 proto: {
113 canonical_path_from_root: false,
114 },
115}
116
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400117cc_library_static {
118 name: "ota_metadata_proto_cc",
119 srcs: [
120 "ota_metadata.proto",
121 ],
122 host_supported: true,
123 recovery_available: true,
124 proto: {
125 canonical_path_from_root: false,
126 type: "lite",
127 export_proto_headers: true,
128 },
129}
130
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400131java_library_static {
132 name: "ota_metadata_proto_java",
133 host_supported: true,
134 proto: {
135 type: "nano",
136 },
137 srcs: ["ota_metadata.proto"],
138 sdk_version: "9",
139 target: {
140 android: {
141 jarjar_rules: "jarjar-rules.txt",
142 },
143 host: {
144 static_libs: ["libprotobuf-java-nano"],
145 },
146 },
147 visibility: ["//frameworks/base:__subpackages__"]
148}
149
Yifan Honge3ba82c2019-08-21 13:29:30 -0700150python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700151 name: "releasetools_ota_from_target_files_defaults",
152 srcs: [
153 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400154 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700155 "ota_from_target_files.py",
Tianjiea2076132020-08-19 17:25:32 -0700156 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700157 ],
158 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700159 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700160 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700161 "releasetools_common",
162 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000163 "apex_manifest",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400164 "care_map_proto_py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700165 "ota_utils_lib",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700166 ],
167 required: [
168 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700169 "checkvintf",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800170 "generate_gki_certificate",
Yifan Hong125d0b62020-09-24 17:07:03 -0700171 "lz4",
172 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000173 "unpack_bootimg",
174 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700175 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000176 target: {
177 darwin: {
178 // required module "brillo_update_payload" is disabled on darwin
179 enabled: false,
180 },
181 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700182}
183
184//
185// Host libraries.
186//
187
Tao Bao30e31142019-04-09 00:12:30 -0700188python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700189 name: "releasetools_add_img_to_target_files",
190 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700191 "releasetools_add_img_to_target_files_defaults",
192 ],
193}
194
195python_library_host {
196 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700197 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700198 "apex_utils.py",
199 ],
200 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000201 "apex_manifest",
202 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700203 "releasetools_common",
204 ],
205}
206
207python_library_host {
208 name: "releasetools_build_image",
209 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700210 "releasetools_build_image_defaults",
211 ],
212}
213
214python_library_host {
215 name: "releasetools_build_super_image",
216 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700217 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700218 ],
219}
220
221python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700222 name: "releasetools_check_target_files_vintf",
223 defaults: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700224 "releasetools_check_target_files_vintf_defaults",
225 ],
226}
227
228python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700229 name: "releasetools_common",
Tao Bao30e31142019-04-09 00:12:30 -0700230 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700231 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700232 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700233 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700234 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700235 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700236 ],
237 // Only the tools that are referenced directly are listed as required modules. For example,
238 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
239 required: [
changho.shin0f125362019-07-08 10:59:00 +0900240 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700241 "boot_signer",
242 "brotli",
243 "bsdiff",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800244 "generate_gki_certificate",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700245 "imgdiff",
J. Avila98cd4cc2020-06-10 20:09:10 +0000246 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700247 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100248 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800249 "toybox",
250 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700251 ],
252}
253
254python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700255 name: "releasetools_img_from_target_files",
256 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700257 "releasetools_img_from_target_files_defaults",
258 ],
259}
260
261python_library_host {
262 name: "releasetools_ota_from_target_files",
263 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700264 "releasetools_ota_from_target_files_defaults",
265 ],
266}
267
268python_library_host {
Inseob Kim9cda3972021-10-12 22:59:12 +0900269 name: "releasetools_fsverity_metadata_generator",
270 srcs: [
271 "fsverity_metadata_generator.py",
272 ],
Inseob Kimf69346e2021-10-13 15:16:33 +0900273 libs: [
274 "fsverity_digests_proto_python",
Inseob Kim9cda3972021-10-12 22:59:12 +0900275 ],
276}
277
278python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700279 name: "releasetools_verity_utils",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700280 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700281 "verity_utils.py",
282 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700283 required: [
284 "append2simg",
285 "build_verity_metadata",
286 "build_verity_tree",
287 "fec",
288 ],
289}
290
Tao Bao3c7b2a62019-08-07 12:24:20 -0700291//
292// Host binaries.
293//
294
Tao Bao2bbb07c2019-05-07 13:12:21 -0700295python_defaults {
296 name: "releasetools_binary_defaults",
297 version: {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700298 py3: {
Cole Faustc76931f2021-11-04 16:59:39 -0700299 embedded_launcher: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700300 },
301 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900302 // TODO (b/140144201) Build imgdiff from releasetools_common
303 required: [
304 "aapt2",
305 "boot_signer",
306 "brotli",
307 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000308 "deapexer",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800309 "generate_gki_certificate",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900310 "imgdiff",
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 ],
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700333 libs: [
334 "releasetools_common",
335 ],
Kelvin Zhang197772f2022-04-26 15:15:11 -0700336}
337
338python_binary_host {
339 name: "merge_ota",
340 version: {
341 py3: {
342 embedded_launcher: true,
343 },
344 },
345 srcs: [
346 "merge_ota.py",
347 ],
348 libs: [
349 "ota_metadata_proto",
350 "update_payload",
351 "care_map_proto_py",
352 "releasetools_common",
353 "ota_utils_lib",
354 ],
355}
356
Tao Bao3c7b2a62019-08-07 12:24:20 -0700357python_binary_host {
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700358 name: "create_brick_ota",
359 version: {
360 py3: {
361 embedded_launcher: true,
362 },
363 },
364 srcs: [
365 "create_brick_ota.py",
366 ],
367 libs: [
368 "ota_utils_lib",
369 ],
370}
371
372python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700373 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700374 defaults: [
375 "releasetools_binary_defaults",
376 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700377 ],
378}
379
380python_binary_host {
381 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700382 defaults: [
383 "releasetools_binary_defaults",
384 "releasetools_build_super_image_defaults",
385 ],
386}
387
388python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000389 name: "check_partition_sizes",
390 srcs: [
391 "check_partition_sizes.py",
392 ],
393 libs: [
394 "releasetools_common",
395 ],
396 defaults: [
397 "releasetools_binary_defaults",
398 ],
399}
400
401python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700402 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700403 defaults: ["releasetools_binary_defaults"],
404 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700405 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700406 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700407 libs: [
408 "releasetools_common",
409 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700410 required: [
411 "delta_generator",
412 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000413 target: {
414 darwin: {
415 // required module "delta_generator" is disabled on darwin
416 enabled: false,
417 },
418 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700419}
420
421python_binary_host {
422 name: "check_target_files_signatures",
423 defaults: ["releasetools_binary_defaults"],
424 srcs: [
425 "check_target_files_signatures.py",
426 ],
427 libs: [
428 "releasetools_common",
429 ],
430 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700431 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700432 ],
433}
434
435python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700436 name: "check_target_files_vintf",
437 defaults: [
438 "releasetools_binary_defaults",
439 "releasetools_check_target_files_vintf_defaults"
440 ],
441}
442
443python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700444 name: "img_from_target_files",
445 defaults: [
446 "releasetools_binary_defaults",
447 "releasetools_img_from_target_files_defaults",
448 ],
Tao Bao30e31142019-04-09 00:12:30 -0700449}
450
Daniel Normanb8d52a22020-10-26 17:55:00 -0700451python_defaults {
452 name: "releasetools_find_shareduid_violation_defaults",
453 srcs: [
454 "find_shareduid_violation.py",
455 ],
456 libs: [
457 "releasetools_common",
458 ],
459}
460
461python_binary_host {
462 name: "find_shareduid_violation",
463 defaults: [
464 "releasetools_binary_defaults",
465 "releasetools_find_shareduid_violation_defaults",
466 ],
467}
468
469python_library_host {
470 name: "releasetools_find_shareduid_violation",
471 defaults: [
472 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700473 ],
474}
475
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700476python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700477 name: "make_recovery_patch",
478 defaults: ["releasetools_binary_defaults"],
479 srcs: [
480 "make_recovery_patch.py",
481 ],
482 libs: [
483 "releasetools_common",
484 ],
485}
486
487python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700488 name: "ota_from_target_files",
489 defaults: [
490 "releasetools_binary_defaults",
491 "releasetools_ota_from_target_files_defaults",
492 ],
493}
494
495python_binary_host {
496 name: "ota_package_parser",
497 defaults: ["releasetools_binary_defaults"],
498 srcs: [
499 "ota_package_parser.py",
500 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700501 ],
502}
503
Tao Baoe11a4602019-08-06 23:21:23 -0700504python_binary_host {
505 name: "sparse_img",
506 defaults: ["releasetools_binary_defaults"],
507 srcs: [
508 "rangelib.py",
509 "sparse_img.py",
510 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700511}
512
Tao Bao3c7b2a62019-08-07 12:24:20 -0700513python_binary_host {
514 name: "sign_apex",
515 defaults: ["releasetools_binary_defaults"],
516 srcs: [
517 "sign_apex.py",
518 ],
519 libs: [
520 "releasetools_apex_utils",
521 "releasetools_common",
522 ],
523}
524
525python_binary_host {
526 name: "sign_target_files_apks",
527 defaults: ["releasetools_binary_defaults"],
528 srcs: [
529 "sign_target_files_apks.py",
530 ],
531 libs: [
532 "releasetools_add_img_to_target_files",
533 "releasetools_apex_utils",
534 "releasetools_common",
535 ],
536}
537
538python_binary_host {
539 name: "validate_target_files",
540 defaults: ["releasetools_binary_defaults"],
541 srcs: [
542 "validate_target_files.py",
543 ],
544 libs: [
545 "releasetools_common",
546 ],
547}
548
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900549python_binary_host {
550 name: "verity_utils",
551 defaults: ["releasetools_binary_defaults"],
552 srcs: [
553 "verity_utils.py",
554 ],
555 libs: [
556 "releasetools_common",
557 ],
558 required: [
559 "append2simg",
560 "build_verity_metadata",
561 "build_verity_tree",
562 "fec",
563 ],
564}
565
Inseob Kim2d034932021-12-13 14:04:00 +0900566python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900567 name: "fsverity_metadata_generator",
Inseob Kim293112d2022-02-16 11:22:03 +0900568 defaults: ["releasetools_binary_defaults"],
Inseob Kim135c1f12022-01-06 17:22:07 +0900569 srcs: [
570 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900571 ],
572 required: [
573 "fsverity",
574 ],
575}
576
Tao Bao3c7b2a62019-08-07 12:24:20 -0700577//
578// Tests.
579//
580
Tao Baoca82fc92019-05-01 21:58:03 -0700581python_defaults {
582 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700583 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700584 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000585 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700586 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700587 "make_recovery_patch.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700588 "ota_package_parser.py",
589 "sign_apex.py",
590 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700591 "validate_target_files.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700592 "merge_ota.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -0800593 ":releasetools_merge_sources",
594 ":releasetools_merge_tests",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700595
Tao Bao30e31142019-04-09 00:12:30 -0700596 "test_*.py",
597 ],
598 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700599 "releasetools_add_img_to_target_files",
600 "releasetools_apex_utils",
601 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700602 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700603 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700604 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700605 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700606 "releasetools_img_from_target_files",
607 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700608 "releasetools_verity_utils",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700609 "update_payload",
Tao Bao30e31142019-04-09 00:12:30 -0700610 ],
611 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700612 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000613 ":com.android.apex.compressed.v1",
614 ":com.android.apex.compressed.v1_original",
Rob Seymour9492da52022-10-06 18:23:49 +0000615 ":com.android.apex.vendor.foo.with_vintf"
Tao Bao30e31142019-04-09 00:12:30 -0700616 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000617 target: {
618 darwin: {
619 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
620 enabled: false,
621 },
622 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000623 required: [
624 "deapexer",
625 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700626}
627
628python_test_host {
629 name: "releasetools_test",
630 defaults: ["releasetools_test_defaults"],
631 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700632 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
633 // host, because the test executable won't be able to find the needed libs via its
634 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800635 test_options: {
636 unit_test: true,
637 },
Tao Bao30e31142019-04-09 00:12:30 -0700638}