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 15package { 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 24cc_defaults { 25 name: "libinstall_defaults", 26 27 defaults: [ 28 "recovery_defaults", 29 "libspl_check_defaults", 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", 41 "liblog", 42 "libselinux", 43 "libtinyxml2", 44 "libutils", 45 "libz", 46 "libziparchive", 47 ], 48 49 static_libs: [ 50 "librecovery_utils", 51 "libotautil", 52 "libsnapshot_nobinder", 53 "ota_metadata_proto_cc", 54 55 // external dependencies 56 "libvintf", 57 ], 58} 59 60cc_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 73cc_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 85cc_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 98cc_library_static { 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", 109 "fuse_install.cpp", 110 "install.cpp", 111 "package.cpp", 112 "snapshot_utils.cpp", 113 "verifier.cpp", 114 "wipe_data.cpp", 115 "wipe_device.cpp", 116 "spl_check.cpp", 117 ], 118 119 header_libs: [ 120 "libminadbd_headers", 121 ], 122 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} 135