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 | |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 22 | cflags: [ |
| 23 | //"-DRECOVERY_API_VERSION=3" |
xunchang | 95d6732 | 2019-04-05 16:16:07 -0700 | [diff] [blame] | 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", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 35 | "liblog", |
| 36 | "libselinux", |
| 37 | "libtinyxml2", |
| 38 | "libutils", |
| 39 | "libz", |
| 40 | "libziparchive", |
| 41 | ], |
| 42 | |
| 43 | static_libs: [ |
Tao Bao | e3f09a7 | 2019-10-01 11:55:36 -0700 | [diff] [blame] | 44 | "librecovery_utils", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 45 | "libotautil", |
David Anderson | 89d2d05 | 2019-10-15 13:22:20 -0700 | [diff] [blame] | 46 | "libsnapshot_nobinder", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 47 | |
| 48 | // external dependencies |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 49 | "libvintf", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 50 | ], |
| 51 | } |
| 52 | |
Tao Bao | 2f8afba | 2019-04-08 11:26:11 -0700 | [diff] [blame] | 53 | cc_library_static { |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 54 | name: "libinstall", |
| 55 | recovery_available: true, |
| 56 | |
| 57 | defaults: [ |
| 58 | "libinstall_defaults", |
| 59 | ], |
| 60 | |
| 61 | srcs: [ |
| 62 | "adb_install.cpp", |
| 63 | "asn1_decoder.cpp", |
Tianjie Xu | f6158eb | 2019-06-11 16:09:07 -0700 | [diff] [blame] | 64 | "fuse_install.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 65 | "install.cpp", |
| 66 | "package.cpp", |
David Anderson | 89d2d05 | 2019-10-15 13:22:20 -0700 | [diff] [blame] | 67 | "snapshot_utils.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 68 | "verifier.cpp", |
xunchang | 388d253 | 2019-04-12 16:22:15 -0700 | [diff] [blame] | 69 | "wipe_data.cpp", |
Tao Bao | 7f19d10 | 2019-04-26 22:56:56 -0700 | [diff] [blame] | 70 | "wipe_device.cpp", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 71 | ], |
| 72 | |
Tao Bao | 3305d48 | 2019-09-26 00:02:29 -0700 | [diff] [blame] | 73 | header_libs: [ |
| 74 | "libminadbd_headers", |
xunchang | 2478885 | 2019-03-22 16:08:52 -0700 | [diff] [blame] | 75 | ], |
| 76 | |
| 77 | shared_libs: [ |
| 78 | "librecovery_ui", |
| 79 | ], |
| 80 | |
| 81 | export_include_dirs: [ |
| 82 | "include", |
| 83 | ], |
| 84 | |
| 85 | export_shared_lib_headers: [ |
| 86 | "librecovery_ui", |
| 87 | ], |
| 88 | } |