blob: 96ec73e637b84c92a53547806446c3622e49ee86 [file] [log] [blame]
Daniel Norman2b0b9ca2022-03-02 16:12:08 -08001// Copyright (C) 2022 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
15package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19filegroup {
20 name: "releasetools_merge_sources",
21 srcs: [
Daniel Norman2465fc82022-03-02 12:01:20 -080022 "merge_compatibility_checks.py",
23 "merge_dexopt.py",
24 "merge_meta.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -080025 "merge_target_files.py",
Daniel Norman2465fc82022-03-02 12:01:20 -080026 "merge_utils.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -080027 ],
28}
29
30filegroup {
31 name: "releasetools_merge_tests",
32 srcs: [
Daniel Norman2465fc82022-03-02 12:01:20 -080033 "test_merge_compatibility_checks.py",
34 "test_merge_meta.py",
35 "test_merge_utils.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -080036 ],
37}
38
39python_binary_host {
40 name: "merge_target_files",
41 defaults: ["releasetools_binary_defaults"],
42 srcs: [":releasetools_merge_sources"],
43 libs: [
44 "releasetools_add_img_to_target_files",
45 "releasetools_build_super_image",
46 "releasetools_check_target_files_vintf",
47 "releasetools_common",
48 "releasetools_find_shareduid_violation",
49 "releasetools_img_from_target_files",
50 "releasetools_ota_from_target_files",
51 ],
52 required: [
Jooyung Hanc9542ab2023-06-27 16:12:32 +090053 "apexd_host",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -080054 "checkvintf",
55 "host_init_verifier",
56 "secilc",
57 ],
58 target: {
59 darwin: {
60 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
61 enabled: false,
62 },
63 },
64}
65
66python_binary_host {
67 name: "merge_builds",
68 defaults: ["releasetools_binary_defaults"],
69 srcs: [
70 "merge_builds.py",
71 ],
72 libs: [
73 "releasetools_build_super_image",
74 "releasetools_common",
75 ],
76}