Daniel Norman | 2b0b9ca | 2022-03-02 16:12:08 -0800 | [diff] [blame] | 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
| 19 | filegroup { |
| 20 | name: "releasetools_merge_sources", |
| 21 | srcs: [ |
Daniel Norman | 2465fc8 | 2022-03-02 12:01:20 -0800 | [diff] [blame^] | 22 | "merge_compatibility_checks.py", |
| 23 | "merge_dexopt.py", |
| 24 | "merge_meta.py", |
Daniel Norman | 2b0b9ca | 2022-03-02 16:12:08 -0800 | [diff] [blame] | 25 | "merge_target_files.py", |
Daniel Norman | 2465fc8 | 2022-03-02 12:01:20 -0800 | [diff] [blame^] | 26 | "merge_utils.py", |
Daniel Norman | 2b0b9ca | 2022-03-02 16:12:08 -0800 | [diff] [blame] | 27 | ], |
| 28 | } |
| 29 | |
| 30 | filegroup { |
| 31 | name: "releasetools_merge_tests", |
| 32 | srcs: [ |
Daniel Norman | 2465fc8 | 2022-03-02 12:01:20 -0800 | [diff] [blame^] | 33 | "test_merge_compatibility_checks.py", |
| 34 | "test_merge_meta.py", |
| 35 | "test_merge_utils.py", |
Daniel Norman | 2b0b9ca | 2022-03-02 16:12:08 -0800 | [diff] [blame] | 36 | ], |
| 37 | } |
| 38 | |
| 39 | python_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 | |
| 65 | python_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 | } |