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 | |
| 15 | cc_defaults { |
| 16 | name: "libinstall_defaults", |
| 17 | |
| 18 | defaults: [ |
| 19 | "recovery_defaults", |
| 20 | ], |
| 21 | |
xunchang | 95d6732 | 2019-04-05 16:16:07 -0700 | [diff] [blame^] | 22 | header_libs: [ |
| 23 | "libminadbd_headers", |
| 24 | ], |
| 25 | |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 26 | shared_libs: [ |
| 27 | "libbase", |
| 28 | "libbootloader_message", |
| 29 | "libcrypto", |
| 30 | "libext4_utils", |
| 31 | "libfs_mgr", |
| 32 | "libfusesideload", |
| 33 | "libhidl-gen-utils", |
| 34 | "libhidlbase", |
| 35 | "libhidltransport", |
| 36 | "liblog", |
| 37 | "libselinux", |
| 38 | "libtinyxml2", |
| 39 | "libutils", |
| 40 | "libz", |
| 41 | "libziparchive", |
| 42 | ], |
| 43 | |
| 44 | static_libs: [ |
| 45 | "libotautil", |
| 46 | |
| 47 | // external dependencies |
| 48 | "libvintf_recovery", |
| 49 | "libvintf", |
| 50 | "libfstab", |
| 51 | ], |
| 52 | } |
| 53 | |
Tao Bao | 2f8afba | 2019-04-08 11:26:11 -0700 | [diff] [blame] | 54 | cc_library_static { |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 55 | name: "libinstall", |
| 56 | recovery_available: true, |
| 57 | |
| 58 | defaults: [ |
| 59 | "libinstall_defaults", |
| 60 | ], |
| 61 | |
| 62 | srcs: [ |
| 63 | "adb_install.cpp", |
| 64 | "asn1_decoder.cpp", |
| 65 | "fuse_sdcard_install.cpp", |
| 66 | "install.cpp", |
| 67 | "package.cpp", |
| 68 | "verifier.cpp", |
| 69 | ], |
| 70 | |
| 71 | shared_libs: [ |
| 72 | "librecovery_ui", |
| 73 | ], |
| 74 | |
| 75 | export_include_dirs: [ |
| 76 | "include", |
| 77 | ], |
| 78 | |
| 79 | export_shared_lib_headers: [ |
| 80 | "librecovery_ui", |
| 81 | ], |
| 82 | } |