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: [ |
| 22 | "merge_target_files.py", |
| 23 | ], |
| 24 | } |
| 25 | |
| 26 | filegroup { |
| 27 | name: "releasetools_merge_tests", |
| 28 | srcs: [ |
| 29 | "test_merge_target_files.py", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | python_binary_host { |
| 34 | name: "merge_target_files", |
| 35 | defaults: ["releasetools_binary_defaults"], |
| 36 | srcs: [":releasetools_merge_sources"], |
| 37 | libs: [ |
| 38 | "releasetools_add_img_to_target_files", |
| 39 | "releasetools_build_super_image", |
| 40 | "releasetools_check_target_files_vintf", |
| 41 | "releasetools_common", |
| 42 | "releasetools_find_shareduid_violation", |
| 43 | "releasetools_img_from_target_files", |
| 44 | "releasetools_ota_from_target_files", |
| 45 | ], |
| 46 | required: [ |
| 47 | "checkvintf", |
| 48 | "host_init_verifier", |
| 49 | "secilc", |
| 50 | ], |
| 51 | target: { |
| 52 | darwin: { |
| 53 | // libs dep "releasetools_ota_from_target_files" is disabled on darwin |
| 54 | enabled: false, |
| 55 | }, |
| 56 | }, |
| 57 | } |
| 58 | |
| 59 | python_binary_host { |
| 60 | name: "merge_builds", |
| 61 | defaults: ["releasetools_binary_defaults"], |
| 62 | srcs: [ |
| 63 | "merge_builds.py", |
| 64 | ], |
| 65 | libs: [ |
| 66 | "releasetools_build_super_image", |
| 67 | "releasetools_common", |
| 68 | ], |
| 69 | } |