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 | |
| 22 | shared_libs: [ |
| 23 | "libbase", |
| 24 | "libbootloader_message", |
| 25 | "libcrypto", |
| 26 | "libext4_utils", |
| 27 | "libfs_mgr", |
| 28 | "libfusesideload", |
| 29 | "libhidl-gen-utils", |
| 30 | "libhidlbase", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 31 | "liblog", |
| 32 | "libselinux", |
| 33 | "libtinyxml2", |
| 34 | "libutils", |
| 35 | "libz", |
| 36 | "libziparchive", |
| 37 | ], |
| 38 | |
| 39 | static_libs: [ |
| 40 | "libotautil", |
| 41 | |
| 42 | // external dependencies |
| 43 | "libvintf_recovery", |
| 44 | "libvintf", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 45 | ], |
| 46 | } |
| 47 | |
Tao Bao | 0deed33 | 2019-04-08 11:26:11 -0700 | [diff] [blame] | 48 | cc_library_static { |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 49 | name: "libinstall", |
| 50 | recovery_available: true, |
| 51 | |
| 52 | defaults: [ |
| 53 | "libinstall_defaults", |
| 54 | ], |
| 55 | |
| 56 | srcs: [ |
| 57 | "adb_install.cpp", |
| 58 | "asn1_decoder.cpp", |
Tianjie Xu | f6158eb | 2019-06-11 16:09:07 -0700 | [diff] [blame] | 59 | "fuse_install.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 60 | "install.cpp", |
| 61 | "package.cpp", |
| 62 | "verifier.cpp", |
xunchang | 316e971 | 2019-04-12 16:22:15 -0700 | [diff] [blame] | 63 | "wipe_data.cpp", |
Tao Bao | 7f19d10 | 2019-04-26 22:56:56 -0700 | [diff] [blame] | 64 | "wipe_device.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 65 | ], |
| 66 | |
Tao Bao | 3305d48 | 2019-09-26 00:02:29 -0700 | [diff] [blame] | 67 | header_libs: [ |
| 68 | "libminadbd_headers", |
| 69 | ], |
| 70 | |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 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 | } |