blob: 8c88bd01e7a205bccb4d58288fa69b861c9a3287 [file] [log] [blame]
xunchang24788852019-03-22 16:08:52 -07001// 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 Badour29be3f62021-02-12 18:00:57 -080015package {
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
xunchang24788852019-03-22 16:08:52 -070024cc_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",
xunchang24788852019-03-22 16:08:52 -070040 "liblog",
41 "libselinux",
42 "libtinyxml2",
43 "libutils",
44 "libz",
45 "libziparchive",
46 ],
47
48 static_libs: [
Tao Baoe3f09a72019-10-01 11:55:36 -070049 "librecovery_utils",
xunchang24788852019-03-22 16:08:52 -070050 "libotautil",
David Anderson89d2d052019-10-15 13:22:20 -070051 "libsnapshot_nobinder",
xunchang24788852019-03-22 16:08:52 -070052
53 // external dependencies
xunchang24788852019-03-22 16:08:52 -070054 "libvintf",
xunchang24788852019-03-22 16:08:52 -070055 ],
56}
57
Tao Bao0deed332019-04-08 11:26:11 -070058cc_library_static {
xunchang24788852019-03-22 16:08:52 -070059 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 Xuf6158eb2019-06-11 16:09:07 -070069 "fuse_install.cpp",
xunchang24788852019-03-22 16:08:52 -070070 "install.cpp",
71 "package.cpp",
David Anderson89d2d052019-10-15 13:22:20 -070072 "snapshot_utils.cpp",
xunchang24788852019-03-22 16:08:52 -070073 "verifier.cpp",
xunchang316e9712019-04-12 16:22:15 -070074 "wipe_data.cpp",
Tao Bao7f19d102019-04-26 22:56:56 -070075 "wipe_device.cpp",
xunchang24788852019-03-22 16:08:52 -070076 ],
77
Tao Bao3305d482019-09-26 00:02:29 -070078 header_libs: [
79 "libminadbd_headers",
80 ],
81
xunchang24788852019-03-22 16:08:52 -070082 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}