blob: 094ffe1f2195c3840a80cc07bae2c7d3cd4dfd24 [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 ],
337}
338
339python_binary_host {
340 name: "merge_ota",
341 version: {
342 py3: {
343 embedded_launcher: true,
344 },
345 },
346 srcs: [
347 "merge_ota.py",
348 ],
349 libs: [
350 "ota_metadata_proto",
351 "update_payload",
352 "care_map_proto_py",
353 "releasetools_common",
354 "ota_utils_lib",
355 ],
356}
357
Tao Bao3c7b2a62019-08-07 12:24:20 -0700358python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700359 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700360 defaults: [
361 "releasetools_binary_defaults",
362 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700363 ],
364}
365
366python_binary_host {
367 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700368 defaults: [
369 "releasetools_binary_defaults",
370 "releasetools_build_super_image_defaults",
371 ],
372}
373
374python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000375 name: "check_partition_sizes",
376 srcs: [
377 "check_partition_sizes.py",
378 ],
379 libs: [
380 "releasetools_common",
381 ],
382 defaults: [
383 "releasetools_binary_defaults",
384 ],
385}
386
387python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700388 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700389 defaults: ["releasetools_binary_defaults"],
390 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700391 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700392 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700393 libs: [
394 "releasetools_common",
395 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700396 required: [
397 "delta_generator",
398 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000399 target: {
400 darwin: {
401 // required module "delta_generator" is disabled on darwin
402 enabled: false,
403 },
404 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700405}
406
407python_binary_host {
408 name: "check_target_files_signatures",
409 defaults: ["releasetools_binary_defaults"],
410 srcs: [
411 "check_target_files_signatures.py",
412 ],
413 libs: [
414 "releasetools_common",
415 ],
416 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700417 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700418 ],
419}
420
421python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700422 name: "check_target_files_vintf",
423 defaults: [
424 "releasetools_binary_defaults",
425 "releasetools_check_target_files_vintf_defaults"
426 ],
427}
428
429python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700430 name: "img_from_target_files",
431 defaults: [
432 "releasetools_binary_defaults",
433 "releasetools_img_from_target_files_defaults",
434 ],
Tao Bao30e31142019-04-09 00:12:30 -0700435}
436
Daniel Normanb8d52a22020-10-26 17:55:00 -0700437python_defaults {
438 name: "releasetools_find_shareduid_violation_defaults",
439 srcs: [
440 "find_shareduid_violation.py",
441 ],
442 libs: [
443 "releasetools_common",
444 ],
445}
446
447python_binary_host {
448 name: "find_shareduid_violation",
449 defaults: [
450 "releasetools_binary_defaults",
451 "releasetools_find_shareduid_violation_defaults",
452 ],
453}
454
455python_library_host {
456 name: "releasetools_find_shareduid_violation",
457 defaults: [
458 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700459 ],
460}
461
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700462python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700463 name: "make_recovery_patch",
464 defaults: ["releasetools_binary_defaults"],
465 srcs: [
466 "make_recovery_patch.py",
467 ],
468 libs: [
469 "releasetools_common",
470 ],
471}
472
473python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700474 name: "ota_from_target_files",
475 defaults: [
476 "releasetools_binary_defaults",
477 "releasetools_ota_from_target_files_defaults",
478 ],
479}
480
481python_binary_host {
482 name: "ota_package_parser",
483 defaults: ["releasetools_binary_defaults"],
484 srcs: [
485 "ota_package_parser.py",
486 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700487 ],
488}
489
Tao Baoe11a4602019-08-06 23:21:23 -0700490python_binary_host {
491 name: "sparse_img",
492 defaults: ["releasetools_binary_defaults"],
493 srcs: [
494 "rangelib.py",
495 "sparse_img.py",
496 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700497}
498
Tao Bao3c7b2a62019-08-07 12:24:20 -0700499python_binary_host {
500 name: "sign_apex",
501 defaults: ["releasetools_binary_defaults"],
502 srcs: [
503 "sign_apex.py",
504 ],
505 libs: [
506 "releasetools_apex_utils",
507 "releasetools_common",
508 ],
509}
510
511python_binary_host {
512 name: "sign_target_files_apks",
513 defaults: ["releasetools_binary_defaults"],
514 srcs: [
515 "sign_target_files_apks.py",
516 ],
517 libs: [
518 "releasetools_add_img_to_target_files",
519 "releasetools_apex_utils",
520 "releasetools_common",
521 ],
522}
523
524python_binary_host {
525 name: "validate_target_files",
526 defaults: ["releasetools_binary_defaults"],
527 srcs: [
528 "validate_target_files.py",
529 ],
530 libs: [
531 "releasetools_common",
532 ],
533}
534
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900535python_binary_host {
536 name: "verity_utils",
537 defaults: ["releasetools_binary_defaults"],
538 srcs: [
539 "verity_utils.py",
540 ],
541 libs: [
542 "releasetools_common",
543 ],
544 required: [
545 "append2simg",
546 "build_verity_metadata",
547 "build_verity_tree",
548 "fec",
549 ],
550}
551
Inseob Kim2d034932021-12-13 14:04:00 +0900552python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900553 name: "fsverity_metadata_generator",
Inseob Kim293112d2022-02-16 11:22:03 +0900554 defaults: ["releasetools_binary_defaults"],
Inseob Kim135c1f12022-01-06 17:22:07 +0900555 srcs: [
556 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900557 ],
558 required: [
559 "fsverity",
560 ],
561}
562
Tao Bao3c7b2a62019-08-07 12:24:20 -0700563//
564// Tests.
565//
566
Tao Baoca82fc92019-05-01 21:58:03 -0700567python_defaults {
568 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700569 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700570 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000571 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700572 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700573 "make_recovery_patch.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700574 "ota_package_parser.py",
575 "sign_apex.py",
576 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700577 "validate_target_files.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700578 "merge_ota.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -0800579 ":releasetools_merge_sources",
580 ":releasetools_merge_tests",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700581
Tao Bao30e31142019-04-09 00:12:30 -0700582 "test_*.py",
583 ],
584 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700585 "releasetools_add_img_to_target_files",
586 "releasetools_apex_utils",
587 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700588 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700589 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700590 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700591 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700592 "releasetools_img_from_target_files",
593 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700594 "releasetools_verity_utils",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700595 "update_payload",
Tao Bao30e31142019-04-09 00:12:30 -0700596 ],
597 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700598 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000599 ":com.android.apex.compressed.v1",
600 ":com.android.apex.compressed.v1_original",
Rob Seymour9492da52022-10-06 18:23:49 +0000601 ":com.android.apex.vendor.foo.with_vintf"
Tao Bao30e31142019-04-09 00:12:30 -0700602 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000603 target: {
604 darwin: {
605 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
606 enabled: false,
607 },
608 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000609 required: [
610 "deapexer",
611 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700612}
613
614python_test_host {
615 name: "releasetools_test",
616 defaults: ["releasetools_test_defaults"],
617 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700618 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
619 // host, because the test executable won't be able to find the needed libs via its
620 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800621 test_options: {
622 unit_test: true,
623 },
Tao Bao30e31142019-04-09 00:12:30 -0700624}