1// 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: [ 22 "merge_compatibility_checks.py", 23 "merge_dexopt.py", 24 "merge_meta.py", 25 "merge_target_files.py", 26 "merge_utils.py", 27 ], 28} 29 30filegroup { 31 name: "releasetools_merge_tests", 32 srcs: [ 33 "test_merge_compatibility_checks.py", 34 "test_merge_meta.py", 35 "test_merge_utils.py", 36 ], 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 "apexd_host", 54 "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} 77