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", |
| 29 | ], |
| 30 | |
| 31 | shared_libs: [ |
| 32 | "libbase", |
| 33 | "libbootloader_message", |
| 34 | "libcrypto", |
| 35 | "libext4_utils", |
| 36 | "libfs_mgr", |
| 37 | "libfusesideload", |
| 38 | "libhidl-gen-utils", |
| 39 | "libhidlbase", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 40 | "liblog", |
| 41 | "libselinux", |
| 42 | "libtinyxml2", |
| 43 | "libutils", |
| 44 | "libz", |
| 45 | "libziparchive", |
| 46 | ], |
| 47 | |
| 48 | static_libs: [ |
Tao Bao | e3f09a7 | 2019-10-01 11:55:36 -0700 | [diff] [blame] | 49 | "librecovery_utils", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 50 | "libotautil", |
David Anderson | 89d2d05 | 2019-10-15 13:22:20 -0700 | [diff] [blame] | 51 | "libsnapshot_nobinder", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 52 | |
| 53 | // external dependencies |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 54 | "libvintf", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 55 | ], |
| 56 | } |
| 57 | |
Tao Bao | 0deed33 | 2019-04-08 11:26:11 -0700 | [diff] [blame] | 58 | cc_library_static { |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 59 | name: "libinstall", |
| 60 | recovery_available: true, |
| 61 | |
| 62 | defaults: [ |
| 63 | "libinstall_defaults", |
| 64 | ], |
| 65 | |
| 66 | srcs: [ |
| 67 | "adb_install.cpp", |
| 68 | "asn1_decoder.cpp", |
Tianjie Xu | f6158eb | 2019-06-11 16:09:07 -0700 | [diff] [blame] | 69 | "fuse_install.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 70 | "install.cpp", |
| 71 | "package.cpp", |
David Anderson | 89d2d05 | 2019-10-15 13:22:20 -0700 | [diff] [blame] | 72 | "snapshot_utils.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 73 | "verifier.cpp", |
xunchang | 316e971 | 2019-04-12 16:22:15 -0700 | [diff] [blame] | 74 | "wipe_data.cpp", |
Tao Bao | 7f19d10 | 2019-04-26 22:56:56 -0700 | [diff] [blame] | 75 | "wipe_device.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 76 | ], |
| 77 | |
Tao Bao | 3305d48 | 2019-09-26 00:02:29 -0700 | [diff] [blame] | 78 | header_libs: [ |
| 79 | "libminadbd_headers", |
| 80 | ], |
| 81 | |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 82 | shared_libs: [ |
| 83 | "librecovery_ui", |
| 84 | ], |
| 85 | |
| 86 | export_include_dirs: [ |
| 87 | "include", |
| 88 | ], |
| 89 | |
| 90 | export_shared_lib_headers: [ |
| 91 | "librecovery_ui", |
| 92 | ], |
| 93 | } |