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 default_team: "trendy_team_android_kernel", 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 25cc_defaults { 26 name: "libinstall_defaults", 27 28 defaults: [ 29 "recovery_defaults", 30 "libspl_check_defaults", 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", 42 "liblog", 43 "libselinux", 44 "libtinyxml2", 45 "libutils", 46 "libz", 47 "libziparchive", 48 ], 49 50 static_libs: [ 51 "librecovery_utils", 52 "libotautil", 53 "libsnapshot_nobinder", 54 "ota_metadata_proto_cc", 55 56 // external dependencies 57 "libvintf", 58 ], 59} 60 61cc_test_host { 62 name: "libinstall_host_unittests", 63 defaults: [ 64 "libspl_check_defaults", 65 ], 66 srcs: [ 67 "spl_check_unittests.cpp", 68 ], 69 static_libs: [ 70 "libspl_check", 71 ], 72} 73 74cc_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 86cc_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 99cc_library_static { 100 name: "libinstall", 101 recovery_available: true, 102 103 defaults: [ 104 "libinstall_defaults", 105 ], 106 107 srcs: [ 108 "adb_install.cpp", 109 "fuse_install.cpp", 110 "install.cpp", 111 "snapshot_utils.cpp", 112 "wipe_data.cpp", 113 "wipe_device.cpp", 114 "spl_check.cpp", 115 ], 116 117 header_libs: [ 118 "libminadbd_headers", 119 ], 120 121 shared_libs: [ 122 "librecovery_ui", 123 ], 124 125 export_include_dirs: [ 126 "include", 127 ], 128 129 export_shared_lib_headers: [ 130 "librecovery_ui", 131 ], 132} 133