blob: bd347a1003c917178adc965e9417dbd9758a72ca [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: [
Jooyung Hanccec6ad2023-08-29 10:16:31 +0900168 "apexd_host",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700169 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700170 "checkvintf",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800171 "generate_gki_certificate",
Yifan Hong125d0b62020-09-24 17:07:03 -0700172 "lz4",
173 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000174 "unpack_bootimg",
175 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700176 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000177 target: {
178 darwin: {
179 // required module "brillo_update_payload" is disabled on darwin
180 enabled: false,
181 },
182 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700183}
184
185//
186// Host libraries.
187//
188
Tao Bao30e31142019-04-09 00:12:30 -0700189python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700190 name: "releasetools_add_img_to_target_files",
191 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700192 "releasetools_add_img_to_target_files_defaults",
193 ],
194}
195
196python_library_host {
197 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700198 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700199 "apex_utils.py",
200 ],
201 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000202 "apex_manifest",
203 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700204 "releasetools_common",
205 ],
206}
207
208python_library_host {
209 name: "releasetools_build_image",
210 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700211 "releasetools_build_image_defaults",
212 ],
213}
214
215python_library_host {
216 name: "releasetools_build_super_image",
217 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700218 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700219 ],
220}
221
222python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700223 name: "releasetools_check_target_files_vintf",
224 defaults: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700225 "releasetools_check_target_files_vintf_defaults",
226 ],
227}
228
229python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700230 name: "releasetools_common",
Tao Bao30e31142019-04-09 00:12:30 -0700231 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700232 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700233 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700234 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700235 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700236 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700237 ],
238 // Only the tools that are referenced directly are listed as required modules. For example,
239 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
240 required: [
changho.shin0f125362019-07-08 10:59:00 +0900241 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700242 "boot_signer",
243 "brotli",
244 "bsdiff",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800245 "generate_gki_certificate",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700246 "imgdiff",
J. Avila98cd4cc2020-06-10 20:09:10 +0000247 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700248 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100249 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800250 "toybox",
251 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700252 ],
253}
254
255python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700256 name: "releasetools_img_from_target_files",
257 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700258 "releasetools_img_from_target_files_defaults",
259 ],
260}
261
262python_library_host {
263 name: "releasetools_ota_from_target_files",
264 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700265 "releasetools_ota_from_target_files_defaults",
266 ],
267}
268
269python_library_host {
Inseob Kim9cda3972021-10-12 22:59:12 +0900270 name: "releasetools_fsverity_metadata_generator",
271 srcs: [
272 "fsverity_metadata_generator.py",
273 ],
Inseob Kimf69346e2021-10-13 15:16:33 +0900274 libs: [
275 "fsverity_digests_proto_python",
Inseob Kim9cda3972021-10-12 22:59:12 +0900276 ],
277}
278
279python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700280 name: "releasetools_verity_utils",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700281 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700282 "verity_utils.py",
283 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700284 required: [
285 "append2simg",
286 "build_verity_metadata",
287 "build_verity_tree",
288 "fec",
289 ],
290}
291
Tao Bao3c7b2a62019-08-07 12:24:20 -0700292//
293// Host binaries.
294//
295
Tao Bao2bbb07c2019-05-07 13:12:21 -0700296python_defaults {
297 name: "releasetools_binary_defaults",
298 version: {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700299 py3: {
Cole Faustc76931f2021-11-04 16:59:39 -0700300 embedded_launcher: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700301 },
302 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900303 // TODO (b/140144201) Build imgdiff from releasetools_common
304 required: [
305 "aapt2",
306 "boot_signer",
307 "brotli",
308 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000309 "deapexer",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800310 "generate_gki_certificate",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900311 "imgdiff",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000312 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900313 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000314 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800315 "toybox",
316 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900317 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700318}
319
320python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700321 name: "add_img_to_target_files",
322 defaults: [
323 "releasetools_binary_defaults",
324 "releasetools_add_img_to_target_files_defaults",
325 ],
326}
327
Kelvin Zhang197772f2022-04-26 15:15:11 -0700328python_library_host {
329 name: "ota_utils_lib",
330 srcs: [
331 "ota_utils.py",
332 "payload_signer.py",
333 ],
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700334 libs: [
335 "releasetools_common",
336 ],
Kelvin Zhang197772f2022-04-26 15:15:11 -0700337}
338
339python_binary_host {
340 name: "merge_ota",
341 version: {
342 py3: {
343 embedded_launcher: true,
344 },
345 },
346 srcs: [
347 "merge_ota.py",
Kelvin Zhangc7441e52023-08-22 08:56:30 -0700348 "ota_signing_utils.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700349 ],
350 libs: [
351 "ota_metadata_proto",
352 "update_payload",
353 "care_map_proto_py",
354 "releasetools_common",
355 "ota_utils_lib",
356 ],
357}
358
Tao Bao3c7b2a62019-08-07 12:24:20 -0700359python_binary_host {
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700360 name: "create_brick_ota",
361 version: {
362 py3: {
363 embedded_launcher: true,
364 },
365 },
366 srcs: [
367 "create_brick_ota.py",
368 ],
369 libs: [
370 "ota_utils_lib",
371 ],
372}
373
374python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700375 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700376 defaults: [
377 "releasetools_binary_defaults",
378 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700379 ],
380}
381
382python_binary_host {
383 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700384 defaults: [
385 "releasetools_binary_defaults",
386 "releasetools_build_super_image_defaults",
387 ],
388}
389
390python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000391 name: "check_partition_sizes",
392 srcs: [
393 "check_partition_sizes.py",
394 ],
395 libs: [
396 "releasetools_common",
397 ],
398 defaults: [
399 "releasetools_binary_defaults",
400 ],
401}
402
403python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700404 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700405 defaults: ["releasetools_binary_defaults"],
406 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700407 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700408 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700409 libs: [
410 "releasetools_common",
411 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700412 required: [
413 "delta_generator",
414 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000415 target: {
416 darwin: {
417 // required module "delta_generator" is disabled on darwin
418 enabled: false,
419 },
420 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700421}
422
423python_binary_host {
424 name: "check_target_files_signatures",
425 defaults: ["releasetools_binary_defaults"],
426 srcs: [
427 "check_target_files_signatures.py",
428 ],
429 libs: [
430 "releasetools_common",
431 ],
432 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700433 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700434 ],
435}
436
437python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700438 name: "check_target_files_vintf",
439 defaults: [
440 "releasetools_binary_defaults",
441 "releasetools_check_target_files_vintf_defaults"
442 ],
443}
444
445python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700446 name: "img_from_target_files",
447 defaults: [
448 "releasetools_binary_defaults",
449 "releasetools_img_from_target_files_defaults",
450 ],
Tao Bao30e31142019-04-09 00:12:30 -0700451}
452
Daniel Normanb8d52a22020-10-26 17:55:00 -0700453python_defaults {
454 name: "releasetools_find_shareduid_violation_defaults",
455 srcs: [
456 "find_shareduid_violation.py",
457 ],
458 libs: [
459 "releasetools_common",
460 ],
461}
462
463python_binary_host {
464 name: "find_shareduid_violation",
465 defaults: [
466 "releasetools_binary_defaults",
467 "releasetools_find_shareduid_violation_defaults",
468 ],
469}
470
471python_library_host {
472 name: "releasetools_find_shareduid_violation",
473 defaults: [
474 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700475 ],
476}
477
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700478python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700479 name: "make_recovery_patch",
480 defaults: ["releasetools_binary_defaults"],
481 srcs: [
482 "make_recovery_patch.py",
483 ],
484 libs: [
485 "releasetools_common",
486 ],
487}
488
489python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700490 name: "ota_from_target_files",
491 defaults: [
492 "releasetools_binary_defaults",
493 "releasetools_ota_from_target_files_defaults",
494 ],
495}
496
497python_binary_host {
Kelvin Zhangc7441e52023-08-22 08:56:30 -0700498 name: "ota_from_raw_img",
499 srcs: [
500 "ota_from_raw_img.py",
501 "ota_signing_utils.py",
502 ],
503 main: "ota_from_raw_img.py",
504 defaults: [
505 "releasetools_binary_defaults",
506 ],
507 required: [
508 "delta_generator",
509 ],
510 libs: [
511 "ota_metadata_proto",
512 "releasetools_common",
513 "ota_utils_lib",
514 ],
515}
516
517python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700518 name: "ota_package_parser",
519 defaults: ["releasetools_binary_defaults"],
520 srcs: [
521 "ota_package_parser.py",
522 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700523 ],
524}
525
Tao Baoe11a4602019-08-06 23:21:23 -0700526python_binary_host {
527 name: "sparse_img",
528 defaults: ["releasetools_binary_defaults"],
529 srcs: [
530 "rangelib.py",
531 "sparse_img.py",
532 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700533}
534
Tao Bao3c7b2a62019-08-07 12:24:20 -0700535python_binary_host {
536 name: "sign_apex",
537 defaults: ["releasetools_binary_defaults"],
538 srcs: [
539 "sign_apex.py",
540 ],
541 libs: [
542 "releasetools_apex_utils",
543 "releasetools_common",
544 ],
545}
546
547python_binary_host {
548 name: "sign_target_files_apks",
549 defaults: ["releasetools_binary_defaults"],
550 srcs: [
551 "sign_target_files_apks.py",
552 ],
553 libs: [
554 "releasetools_add_img_to_target_files",
555 "releasetools_apex_utils",
556 "releasetools_common",
557 ],
558}
559
560python_binary_host {
561 name: "validate_target_files",
562 defaults: ["releasetools_binary_defaults"],
563 srcs: [
564 "validate_target_files.py",
565 ],
566 libs: [
567 "releasetools_common",
568 ],
569}
570
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900571python_binary_host {
572 name: "verity_utils",
573 defaults: ["releasetools_binary_defaults"],
574 srcs: [
575 "verity_utils.py",
576 ],
577 libs: [
578 "releasetools_common",
579 ],
580 required: [
581 "append2simg",
582 "build_verity_metadata",
583 "build_verity_tree",
584 "fec",
585 ],
586}
587
Inseob Kim2d034932021-12-13 14:04:00 +0900588python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900589 name: "fsverity_metadata_generator",
Inseob Kim293112d2022-02-16 11:22:03 +0900590 defaults: ["releasetools_binary_defaults"],
Inseob Kim135c1f12022-01-06 17:22:07 +0900591 srcs: [
592 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900593 ],
594 required: [
595 "fsverity",
596 ],
597}
598
Tao Bao3c7b2a62019-08-07 12:24:20 -0700599//
600// Tests.
601//
602
Tao Baoca82fc92019-05-01 21:58:03 -0700603python_defaults {
604 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700605 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700606 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000607 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700608 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700609 "make_recovery_patch.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700610 "ota_package_parser.py",
611 "sign_apex.py",
612 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700613 "validate_target_files.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700614 "merge_ota.py",
Kelvin Zhangc7441e52023-08-22 08:56:30 -0700615 "ota_signing_utils.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -0800616 ":releasetools_merge_sources",
617 ":releasetools_merge_tests",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700618
Tao Bao30e31142019-04-09 00:12:30 -0700619 "test_*.py",
620 ],
621 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700622 "releasetools_add_img_to_target_files",
623 "releasetools_apex_utils",
624 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700625 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700626 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700627 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700628 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700629 "releasetools_img_from_target_files",
630 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700631 "releasetools_verity_utils",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700632 "update_payload",
Tao Bao30e31142019-04-09 00:12:30 -0700633 ],
634 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700635 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000636 ":com.android.apex.compressed.v1",
637 ":com.android.apex.compressed.v1_original",
Rob Seymour9492da52022-10-06 18:23:49 +0000638 ":com.android.apex.vendor.foo.with_vintf"
Tao Bao30e31142019-04-09 00:12:30 -0700639 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000640 target: {
641 darwin: {
642 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
643 enabled: false,
644 },
645 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000646 required: [
Jooyung Hanccec6ad2023-08-29 10:16:31 +0900647 "apexd_host",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000648 "deapexer",
649 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700650}
651
652python_test_host {
653 name: "releasetools_test",
654 defaults: ["releasetools_test_defaults"],
655 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700656 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
657 // host, because the test executable won't be able to find the needed libs via its
658 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800659 test_options: {
660 unit_test: true,
661 },
Tao Bao30e31142019-04-09 00:12:30 -0700662}