blob: e239ddc4ebb73371dddb19c3cab63d2519dba5c5 [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",
Kelvin Zhang33c62fc2021-05-14 17:15:50 -040029 "libspl_check_defaults",
xunchang24788852019-03-22 16:08:52 -070030 ],
31
32 shared_libs: [
33 "libbase",
34 "libbootloader_message",
35 "libcrypto",
36 "libext4_utils",
37 "libfs_mgr",
38 "libfusesideload",
39 "libhidl-gen-utils",
40 "libhidlbase",
xunchang24788852019-03-22 16:08:52 -070041 "liblog",
42 "libselinux",
43 "libtinyxml2",
44 "libutils",
45 "libz",
46 "libziparchive",
47 ],
48
49 static_libs: [
Tao Baoe3f09a72019-10-01 11:55:36 -070050 "librecovery_utils",
xunchang24788852019-03-22 16:08:52 -070051 "libotautil",
David Anderson89d2d052019-10-15 13:22:20 -070052 "libsnapshot_nobinder",
Kelvin Zhang33c62fc2021-05-14 17:15:50 -040053 "ota_metadata_proto_cc",
xunchang24788852019-03-22 16:08:52 -070054
55 // external dependencies
xunchang24788852019-03-22 16:08:52 -070056 "libvintf",
xunchang24788852019-03-22 16:08:52 -070057 ],
58}
59
Kelvin Zhang33c62fc2021-05-14 17:15:50 -040060cc_test_host {
61 name: "libinstall_host_unittests",
62 defaults: [
63 "libspl_check_defaults"
64 ],
65 srcs: [
66 "spl_check_unittests.cpp",
67 ],
68 static_libs: [
69 "libspl_check",
70 ],
71}
72
73cc_defaults {
74 name: "libspl_check_defaults",
75 static_libs: [
76 "libbase",
77 "ota_metadata_proto_cc",
78 "liblog",
79 "libziparchive",
80 "libz",
81 "libprotobuf-cpp-lite",
82 ],
83}
84
85cc_library_static {
86 name: "libspl_check",
87 recovery_available: true,
88 host_supported: true,
89 defaults: [
90 "libspl_check_defaults",
91 ],
92 srcs: ["spl_check.cpp"],
93 export_include_dirs: [
94 "include",
95 ],
96}
97
Tao Bao0deed332019-04-08 11:26:11 -070098cc_library_static {
xunchang24788852019-03-22 16:08:52 -070099 name: "libinstall",
100 recovery_available: true,
101
102 defaults: [
103 "libinstall_defaults",
104 ],
105
106 srcs: [
107 "adb_install.cpp",
108 "asn1_decoder.cpp",
Tianjie Xuf6158eb2019-06-11 16:09:07 -0700109 "fuse_install.cpp",
xunchang24788852019-03-22 16:08:52 -0700110 "install.cpp",
111 "package.cpp",
David Anderson89d2d052019-10-15 13:22:20 -0700112 "snapshot_utils.cpp",
xunchang24788852019-03-22 16:08:52 -0700113 "verifier.cpp",
xunchang316e9712019-04-12 16:22:15 -0700114 "wipe_data.cpp",
Tao Bao7f19d102019-04-26 22:56:56 -0700115 "wipe_device.cpp",
Kelvin Zhang33c62fc2021-05-14 17:15:50 -0400116 "spl_check.cpp",
xunchang24788852019-03-22 16:08:52 -0700117 ],
118
Tao Bao3305d482019-09-26 00:02:29 -0700119 header_libs: [
120 "libminadbd_headers",
121 ],
122
xunchang24788852019-03-22 16:08:52 -0700123 shared_libs: [
124 "librecovery_ui",
125 ],
126
127 export_include_dirs: [
128 "include",
129 ],
130
131 export_shared_lib_headers: [
132 "librecovery_ui",
133 ],
134}