blob: f3123b2a1242f58dd885d86ffb5ac726c1b1e06e [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",
Gao Xiang961041a2020-06-17 13:59:16 +080059 "mkerofsimage.sh",
Yifan Hong77023452020-08-25 16:15:16 -070060 "mkuserimg_mke2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070061 "simg2img",
62 "tune2fs",
Jaegeuk Kim1f50a362021-06-08 18:24:46 -070063 "mkf2fsuserimg.sh",
64 "fsck.f2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070065 ],
66}
67
68python_defaults {
69 name: "releasetools_build_super_image_defaults",
70 srcs: [
71 "build_super_image.py",
72 ],
73 libs: [
74 "releasetools_common",
75 ],
76}
77
78python_defaults {
79 name: "releasetools_img_from_target_files_defaults",
80 srcs: [
81 "img_from_target_files.py",
82 ],
83 libs: [
84 "releasetools_build_super_image",
85 "releasetools_common",
86 ],
87}
88
89python_defaults {
Yifan Honge3ba82c2019-08-21 13:29:30 -070090 name: "releasetools_check_target_files_vintf_defaults",
91 srcs: [
92 "check_target_files_vintf.py",
93 ],
94 libs: [
95 "releasetools_common",
96 ],
97 required: [
98 "checkvintf",
99 ],
100}
101
Tianjiea2076132020-08-19 17:25:32 -0700102python_library_host {
103 name: "ota_metadata_proto",
Tianjiea2076132020-08-19 17:25:32 -0700104 srcs: [
105 "ota_metadata.proto",
106 ],
107 proto: {
108 canonical_path_from_root: false,
109 },
110}
111
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400112cc_library_static {
113 name: "ota_metadata_proto_cc",
114 srcs: [
115 "ota_metadata.proto",
116 ],
117 host_supported: true,
118 recovery_available: true,
119 proto: {
120 canonical_path_from_root: false,
121 type: "lite",
122 export_proto_headers: true,
123 },
124}
125
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400126java_library_static {
127 name: "ota_metadata_proto_java",
128 host_supported: true,
129 proto: {
130 type: "nano",
131 },
132 srcs: ["ota_metadata.proto"],
133 sdk_version: "9",
134 target: {
135 android: {
136 jarjar_rules: "jarjar-rules.txt",
137 },
138 host: {
139 static_libs: ["libprotobuf-java-nano"],
140 },
141 },
142 visibility: ["//frameworks/base:__subpackages__"]
143}
144
Yifan Honge3ba82c2019-08-21 13:29:30 -0700145python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700146 name: "releasetools_ota_from_target_files_defaults",
147 srcs: [
148 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400149 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700150 "ota_from_target_files.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400151 "ota_utils.py",
Tianjiea2076132020-08-19 17:25:32 -0700152 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700153 ],
154 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700155 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700156 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700157 "releasetools_common",
158 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000159 "apex_manifest",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400160 "care_map_proto_py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700161 ],
162 required: [
163 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700164 "checkvintf",
jiajia tangf3f842b2021-03-17 21:49:44 +0800165 "minigzip",
Yifan Hong125d0b62020-09-24 17:07:03 -0700166 "lz4",
167 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000168 "unpack_bootimg",
169 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700170 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000171 target: {
172 darwin: {
173 // required module "brillo_update_payload" is disabled on darwin
174 enabled: false,
175 },
176 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700177}
178
179//
180// Host libraries.
181//
182
Tao Bao30e31142019-04-09 00:12:30 -0700183python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700184 name: "releasetools_add_img_to_target_files",
185 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700186 "releasetools_add_img_to_target_files_defaults",
187 ],
188}
189
190python_library_host {
191 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700192 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700193 "apex_utils.py",
194 ],
195 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000196 "apex_manifest",
197 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700198 "releasetools_common",
199 ],
200}
201
202python_library_host {
203 name: "releasetools_build_image",
204 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700205 "releasetools_build_image_defaults",
206 ],
207}
208
209python_library_host {
210 name: "releasetools_build_super_image",
211 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700212 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700213 ],
214}
215
216python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700217 name: "releasetools_check_target_files_vintf",
218 defaults: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700219 "releasetools_check_target_files_vintf_defaults",
220 ],
221}
222
223python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700224 name: "releasetools_common",
Tao Bao30e31142019-04-09 00:12:30 -0700225 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700226 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700227 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700228 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700229 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700230 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700231 ],
232 // Only the tools that are referenced directly are listed as required modules. For example,
233 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
234 required: [
changho.shin0f125362019-07-08 10:59:00 +0900235 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700236 "boot_signer",
237 "brotli",
238 "bsdiff",
239 "imgdiff",
240 "minigzip",
J. Avila98cd4cc2020-06-10 20:09:10 +0000241 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700242 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100243 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800244 "toybox",
245 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700246 ],
247}
248
249python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700250 name: "releasetools_img_from_target_files",
251 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700252 "releasetools_img_from_target_files_defaults",
253 ],
254}
255
256python_library_host {
257 name: "releasetools_ota_from_target_files",
258 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700259 "releasetools_ota_from_target_files_defaults",
260 ],
261}
262
263python_library_host {
Inseob Kim9cda3972021-10-12 22:59:12 +0900264 name: "releasetools_fsverity_metadata_generator",
265 srcs: [
266 "fsverity_metadata_generator.py",
267 ],
Inseob Kimf69346e2021-10-13 15:16:33 +0900268 libs: [
269 "fsverity_digests_proto_python",
Inseob Kim9cda3972021-10-12 22:59:12 +0900270 ],
271}
272
273python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700274 name: "releasetools_verity_utils",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700275 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700276 "verity_utils.py",
277 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700278 required: [
279 "append2simg",
280 "build_verity_metadata",
281 "build_verity_tree",
282 "fec",
283 ],
284}
285
Tao Bao3c7b2a62019-08-07 12:24:20 -0700286//
287// Host binaries.
288//
289
Tao Bao2bbb07c2019-05-07 13:12:21 -0700290python_defaults {
291 name: "releasetools_binary_defaults",
292 version: {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700293 py3: {
Cole Faustc76931f2021-11-04 16:59:39 -0700294 embedded_launcher: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700295 },
296 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900297 // TODO (b/140144201) Build imgdiff from releasetools_common
298 required: [
299 "aapt2",
300 "boot_signer",
301 "brotli",
302 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000303 "deapexer",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900304 "imgdiff",
305 "minigzip",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000306 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900307 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000308 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800309 "toybox",
310 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900311 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700312}
313
314python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700315 name: "add_img_to_target_files",
316 defaults: [
317 "releasetools_binary_defaults",
318 "releasetools_add_img_to_target_files_defaults",
319 ],
320}
321
322python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700323 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700324 defaults: [
325 "releasetools_binary_defaults",
326 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700327 ],
328}
329
330python_binary_host {
331 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700332 defaults: [
333 "releasetools_binary_defaults",
334 "releasetools_build_super_image_defaults",
335 ],
336}
337
338python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000339 name: "check_partition_sizes",
340 srcs: [
341 "check_partition_sizes.py",
342 ],
343 libs: [
344 "releasetools_common",
345 ],
346 defaults: [
347 "releasetools_binary_defaults",
348 ],
349}
350
351python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700352 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700353 defaults: ["releasetools_binary_defaults"],
354 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700355 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700356 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700357 libs: [
358 "releasetools_common",
359 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700360 required: [
361 "delta_generator",
362 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000363 target: {
364 darwin: {
365 // required module "delta_generator" is disabled on darwin
366 enabled: false,
367 },
368 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700369}
370
371python_binary_host {
372 name: "check_target_files_signatures",
373 defaults: ["releasetools_binary_defaults"],
374 srcs: [
375 "check_target_files_signatures.py",
376 ],
377 libs: [
378 "releasetools_common",
379 ],
380 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700381 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700382 ],
383}
384
385python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700386 name: "check_target_files_vintf",
387 defaults: [
388 "releasetools_binary_defaults",
389 "releasetools_check_target_files_vintf_defaults"
390 ],
391}
392
393python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700394 name: "img_from_target_files",
395 defaults: [
396 "releasetools_binary_defaults",
397 "releasetools_img_from_target_files_defaults",
398 ],
Tao Bao30e31142019-04-09 00:12:30 -0700399}
400
Daniel Normanb8d52a22020-10-26 17:55:00 -0700401python_defaults {
402 name: "releasetools_find_shareduid_violation_defaults",
403 srcs: [
404 "find_shareduid_violation.py",
405 ],
406 libs: [
407 "releasetools_common",
408 ],
409}
410
411python_binary_host {
412 name: "find_shareduid_violation",
413 defaults: [
414 "releasetools_binary_defaults",
415 "releasetools_find_shareduid_violation_defaults",
416 ],
417}
418
419python_library_host {
420 name: "releasetools_find_shareduid_violation",
421 defaults: [
422 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700423 ],
424}
425
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700426python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700427 name: "make_recovery_patch",
428 defaults: ["releasetools_binary_defaults"],
429 srcs: [
430 "make_recovery_patch.py",
431 ],
432 libs: [
433 "releasetools_common",
434 ],
435}
436
437python_binary_host {
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700438 name: "merge_builds",
439 defaults: ["releasetools_binary_defaults"],
440 srcs: [
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700441 "merge_builds.py",
442 ],
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700443 libs: [
Tao Bao005305a2019-08-05 13:00:44 -0700444 "releasetools_build_super_image",
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700445 "releasetools_common",
446 ],
447}
448
Tao Bao8821d642019-08-05 12:05:45 -0700449python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700450 name: "merge_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700451 defaults: ["releasetools_binary_defaults"],
452 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700453 "merge_target_files.py",
Tao Bao8821d642019-08-05 12:05:45 -0700454 ],
455 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700456 "releasetools_add_img_to_target_files",
457 "releasetools_build_super_image",
Yifan Hongade0d3f2019-08-21 16:37:11 -0700458 "releasetools_check_target_files_vintf",
Tao Bao8821d642019-08-05 12:05:45 -0700459 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700460 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700461 "releasetools_img_from_target_files",
462 "releasetools_ota_from_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700463 ],
Yifan Hong09298552019-09-04 11:49:01 -0700464 required: [
465 "checkvintf",
Daniel Norman21c34f72020-11-11 17:25:50 -0800466 "host_init_verifier",
Daniel Norman48603ff2021-02-22 15:15:24 -0800467 "secilc",
Yifan Hong09298552019-09-04 11:49:01 -0700468 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000469 target: {
470 darwin: {
471 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
472 enabled: false,
473 },
474 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700475}
476
477python_binary_host {
478 name: "ota_from_target_files",
479 defaults: [
480 "releasetools_binary_defaults",
481 "releasetools_ota_from_target_files_defaults",
482 ],
483}
484
485python_binary_host {
486 name: "ota_package_parser",
487 defaults: ["releasetools_binary_defaults"],
488 srcs: [
489 "ota_package_parser.py",
490 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700491 ],
492}
493
Tao Baoe11a4602019-08-06 23:21:23 -0700494python_binary_host {
495 name: "sparse_img",
496 defaults: ["releasetools_binary_defaults"],
497 srcs: [
498 "rangelib.py",
499 "sparse_img.py",
500 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700501}
502
Tao Bao3c7b2a62019-08-07 12:24:20 -0700503python_binary_host {
504 name: "sign_apex",
505 defaults: ["releasetools_binary_defaults"],
506 srcs: [
507 "sign_apex.py",
508 ],
509 libs: [
510 "releasetools_apex_utils",
511 "releasetools_common",
512 ],
513}
514
515python_binary_host {
516 name: "sign_target_files_apks",
517 defaults: ["releasetools_binary_defaults"],
518 srcs: [
519 "sign_target_files_apks.py",
520 ],
521 libs: [
522 "releasetools_add_img_to_target_files",
523 "releasetools_apex_utils",
524 "releasetools_common",
525 ],
526}
527
528python_binary_host {
529 name: "validate_target_files",
530 defaults: ["releasetools_binary_defaults"],
531 srcs: [
532 "validate_target_files.py",
533 ],
534 libs: [
535 "releasetools_common",
536 ],
537}
538
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900539python_binary_host {
540 name: "verity_utils",
541 defaults: ["releasetools_binary_defaults"],
542 srcs: [
543 "verity_utils.py",
544 ],
545 libs: [
546 "releasetools_common",
547 ],
548 required: [
549 "append2simg",
550 "build_verity_metadata",
551 "build_verity_tree",
552 "fec",
553 ],
554}
555
Inseob Kim2d034932021-12-13 14:04:00 +0900556python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900557 name: "fsverity_manifest_generator",
Inseob Kim2d034932021-12-13 14:04:00 +0900558 srcs: [
Inseob Kim135c1f12022-01-06 17:22:07 +0900559 "fsverity_manifest_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900560 ],
561 libs: [
562 "fsverity_digests_proto_python",
Inseob Kim135c1f12022-01-06 17:22:07 +0900563 "releasetools_common",
564 ],
565 required: [
566 "aapt2",
567 "apksigner",
568 "fsverity",
569 ],
570}
571
572python_binary_host {
573 name: "fsverity_metadata_generator",
574 srcs: [
575 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900576 ],
577 required: [
578 "fsverity",
579 ],
580}
581
Tao Bao3c7b2a62019-08-07 12:24:20 -0700582//
583// Tests.
584//
585
Tao Baoca82fc92019-05-01 21:58:03 -0700586python_defaults {
587 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700588 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700589 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000590 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700591 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700592 "make_recovery_patch.py",
593 "merge_target_files.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700594 "ota_package_parser.py",
595 "sign_apex.py",
596 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700597 "validate_target_files.py",
598
Tao Bao30e31142019-04-09 00:12:30 -0700599 "test_*.py",
600 ],
601 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700602 "releasetools_add_img_to_target_files",
603 "releasetools_apex_utils",
604 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700605 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700606 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700607 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700608 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700609 "releasetools_img_from_target_files",
610 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700611 "releasetools_verity_utils",
Tao Bao30e31142019-04-09 00:12:30 -0700612 ],
613 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700614 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000615 ":com.android.apex.compressed.v1",
616 ":com.android.apex.compressed.v1_original",
Tao Bao30e31142019-04-09 00:12:30 -0700617 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000618 target: {
619 darwin: {
620 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
621 enabled: false,
622 },
623 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000624 required: [
625 "deapexer",
626 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700627}
628
629python_test_host {
630 name: "releasetools_test",
631 defaults: ["releasetools_test_defaults"],
632 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700633 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
634 // host, because the test executable won't be able to find the needed libs via its
635 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800636 test_options: {
637 unit_test: true,
638 },
Tao Bao30e31142019-04-09 00:12:30 -0700639}