blob: 219acf8dbee5e2cfbc7496387e6612090d7a630e [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: [
53 "checkvintf",
54 "host_init_verifier",
55 "secilc",
56 ],
57 target: {
58 darwin: {
59 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
60 enabled: false,
61 },
62 },
63}
64
65python_binary_host {
66 name: "merge_builds",
67 defaults: ["releasetools_binary_defaults"],
68 srcs: [
69 "merge_builds.py",
70 ],
71 libs: [
72 "releasetools_build_super_image",
73 "releasetools_common",
74 ],
75}