bigbiff | 1f9e484 | 2020-10-31 11:33:15 -0400 | [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: "libtwrpinstall_defaults", |
| 17 | |
| 18 | defaults: [ |
| 19 | "recovery_defaults", |
| 20 | ], |
| 21 | |
| 22 | header_libs: [ |
| 23 | "libminadbd_headers", |
| 24 | ], |
| 25 | |
| 26 | shared_libs: [ |
| 27 | "libbase", |
| 28 | "libbootloader_message", |
| 29 | "libcrypto", |
| 30 | "libext4_utils", |
| 31 | "libfs_mgr", |
| 32 | "libfusesideload", |
| 33 | "libhidl-gen-utils", |
| 34 | "libhidlbase", |
bigbiff | 1f9e484 | 2020-10-31 11:33:15 -0400 | [diff] [blame] | 35 | "liblog", |
| 36 | "libselinux", |
| 37 | "libtinyxml2", |
| 38 | "libutils", |
| 39 | "libz", |
| 40 | "libziparchive", |
| 41 | ], |
| 42 | |
| 43 | static_libs: [ |
| 44 | "libotautil", |
| 45 | |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 46 | // external dependencies |
bigbiff | 1f9e484 | 2020-10-31 11:33:15 -0400 | [diff] [blame] | 47 | "libvintf", |
| 48 | "libfstab", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | cc_library_static { |
| 53 | name: "libtwrpinstall", |
| 54 | recovery_available: true, |
| 55 | |
| 56 | defaults: [ |
| 57 | "libtwrpinstall_defaults", |
| 58 | ], |
| 59 | |
| 60 | cflags: [ |
| 61 | "-DAB_OTA_UPDATER=1" |
| 62 | ], |
| 63 | |
| 64 | include_dirs: [ |
| 65 | "bootable/recovery", |
| 66 | "bootable/recovery/install/include", |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 67 | "bootable/recovery/recovery_utils/include", |
| 68 | "bootable/recovery/crypto/fscrypt" |
bigbiff | 1f9e484 | 2020-10-31 11:33:15 -0400 | [diff] [blame] | 69 | ], |
| 70 | |
| 71 | srcs: [ |
| 72 | "adb_install.cpp", |
| 73 | "asn1_decoder.cpp", |
| 74 | "install.cpp", |
| 75 | "installcommand.cpp", |
| 76 | "package.cpp", |
| 77 | "tw_atomic.cpp", |
| 78 | "twinstall.cpp", |
| 79 | "verifier.cpp", |
| 80 | ], |
| 81 | shared_libs: [ |
| 82 | "librecovery_ui", |
| 83 | ], |
| 84 | |
| 85 | export_include_dirs: [ |
| 86 | "include", |
| 87 | ], |
| 88 | |
| 89 | export_shared_lib_headers: [ |
| 90 | "librecovery_ui", |
| 91 | ], |
| 92 | } |