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