xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 1 | // Copyright (C) 2019 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 | |
Bob Badour | 29be3f6 | 2021-02-12 18:00:57 -0800 | [diff] [blame] | 15 | package { |
Aditya Choudhary | eb84a17 | 2024-02-02 13:56:16 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_android_kernel", |
Bob Badour | 29be3f6 | 2021-02-12 18:00:57 -0800 | [diff] [blame] | 17 | // See: http://go/android-license-faq |
| 18 | // A large-scale-change added 'default_applicable_licenses' to import |
| 19 | // all of the 'license_kinds' from "bootable_recovery_license" |
| 20 | // to get the below license kinds: |
| 21 | // SPDX-license-identifier-Apache-2.0 |
| 22 | default_applicable_licenses: ["bootable_recovery_license"], |
| 23 | } |
| 24 | |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 25 | cc_defaults { |
| 26 | name: "libinstall_defaults", |
| 27 | |
| 28 | defaults: [ |
| 29 | "recovery_defaults", |
Kelvin Zhang | 33c62fc | 2021-05-14 17:15:50 -0400 | [diff] [blame] | 30 | "libspl_check_defaults", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 31 | ], |
| 32 | |
| 33 | shared_libs: [ |
| 34 | "libbase", |
| 35 | "libbootloader_message", |
| 36 | "libcrypto", |
| 37 | "libext4_utils", |
| 38 | "libfs_mgr", |
| 39 | "libfusesideload", |
| 40 | "libhidl-gen-utils", |
| 41 | "libhidlbase", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 42 | "liblog", |
| 43 | "libselinux", |
| 44 | "libtinyxml2", |
| 45 | "libutils", |
| 46 | "libz", |
| 47 | "libziparchive", |
| 48 | ], |
| 49 | |
| 50 | static_libs: [ |
Tao Bao | e3f09a7 | 2019-10-01 11:55:36 -0700 | [diff] [blame] | 51 | "librecovery_utils", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 52 | "libotautil", |
David Anderson | 89d2d05 | 2019-10-15 13:22:20 -0700 | [diff] [blame] | 53 | "libsnapshot_nobinder", |
Kelvin Zhang | 33c62fc | 2021-05-14 17:15:50 -0400 | [diff] [blame] | 54 | "ota_metadata_proto_cc", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 55 | |
| 56 | // external dependencies |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 57 | "libvintf", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 58 | ], |
| 59 | } |
| 60 | |
Kelvin Zhang | 33c62fc | 2021-05-14 17:15:50 -0400 | [diff] [blame] | 61 | cc_test_host { |
| 62 | name: "libinstall_host_unittests", |
| 63 | defaults: [ |
Aditya Choudhary | eb84a17 | 2024-02-02 13:56:16 +0000 | [diff] [blame] | 64 | "libspl_check_defaults", |
Kelvin Zhang | 33c62fc | 2021-05-14 17:15:50 -0400 | [diff] [blame] | 65 | ], |
| 66 | srcs: [ |
| 67 | "spl_check_unittests.cpp", |
| 68 | ], |
| 69 | static_libs: [ |
| 70 | "libspl_check", |
| 71 | ], |
| 72 | } |
| 73 | |
| 74 | cc_defaults { |
| 75 | name: "libspl_check_defaults", |
| 76 | static_libs: [ |
| 77 | "libbase", |
| 78 | "ota_metadata_proto_cc", |
| 79 | "liblog", |
| 80 | "libziparchive", |
| 81 | "libz", |
| 82 | "libprotobuf-cpp-lite", |
| 83 | ], |
| 84 | } |
| 85 | |
| 86 | cc_library_static { |
| 87 | name: "libspl_check", |
| 88 | recovery_available: true, |
| 89 | host_supported: true, |
| 90 | defaults: [ |
| 91 | "libspl_check_defaults", |
| 92 | ], |
| 93 | srcs: ["spl_check.cpp"], |
| 94 | export_include_dirs: [ |
| 95 | "include", |
| 96 | ], |
| 97 | } |
| 98 | |
Tao Bao | 0deed33 | 2019-04-08 11:26:11 -0700 | [diff] [blame] | 99 | cc_library_static { |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 100 | name: "libinstall", |
| 101 | recovery_available: true, |
| 102 | |
| 103 | defaults: [ |
| 104 | "libinstall_defaults", |
| 105 | ], |
| 106 | |
| 107 | srcs: [ |
| 108 | "adb_install.cpp", |
Tianjie Xu | f6158eb | 2019-06-11 16:09:07 -0700 | [diff] [blame] | 109 | "fuse_install.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 110 | "install.cpp", |
David Anderson | 89d2d05 | 2019-10-15 13:22:20 -0700 | [diff] [blame] | 111 | "snapshot_utils.cpp", |
xunchang | 316e971 | 2019-04-12 16:22:15 -0700 | [diff] [blame] | 112 | "wipe_data.cpp", |
Tao Bao | 7f19d10 | 2019-04-26 22:56:56 -0700 | [diff] [blame] | 113 | "wipe_device.cpp", |
Kelvin Zhang | 33c62fc | 2021-05-14 17:15:50 -0400 | [diff] [blame] | 114 | "spl_check.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 115 | ], |
| 116 | |
Tao Bao | 3305d48 | 2019-09-26 00:02:29 -0700 | [diff] [blame] | 117 | header_libs: [ |
| 118 | "libminadbd_headers", |
| 119 | ], |
| 120 | |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 121 | shared_libs: [ |
| 122 | "librecovery_ui", |
Tom Marshall | e3d144e | 2019-01-04 14:37:31 -0800 | [diff] [blame] | 123 | "libvolume_manager", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 124 | ], |
| 125 | |
| 126 | export_include_dirs: [ |
| 127 | "include", |
| 128 | ], |
| 129 | |
| 130 | export_shared_lib_headers: [ |
| 131 | "librecovery_ui", |
| 132 | ], |
| 133 | } |