blob: b3e366cc7d31d0c5c5287e82520a06d0bdfcb365 [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 {
Aditya Choudharyeb84a172024-02-02 13:56:16 +000016 default_team: "trendy_team_android_kernel",
Bob Badour29be3f62021-02-12 18:00:57 -080017 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "bootable_recovery_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["bootable_recovery_license"],
23}
24
xunchang24788852019-03-22 16:08:52 -070025cc_defaults {
26 name: "libinstall_defaults",
27
28 defaults: [
29 "recovery_defaults",
Kelvin Zhang33c62fc2021-05-14 17:15:50 -040030 "libspl_check_defaults",
xunchang24788852019-03-22 16:08:52 -070031 ],
32
33 shared_libs: [
34 "libbase",
35 "libbootloader_message",
36 "libcrypto",
37 "libext4_utils",
38 "libfs_mgr",
39 "libfusesideload",
40 "libhidl-gen-utils",
41 "libhidlbase",
xunchang24788852019-03-22 16:08:52 -070042 "liblog",
43 "libselinux",
44 "libtinyxml2",
45 "libutils",
46 "libz",
47 "libziparchive",
48 ],
49
50 static_libs: [
Tao Baoe3f09a72019-10-01 11:55:36 -070051 "librecovery_utils",
xunchang24788852019-03-22 16:08:52 -070052 "libotautil",
David Anderson89d2d052019-10-15 13:22:20 -070053 "libsnapshot_nobinder",
Kelvin Zhang33c62fc2021-05-14 17:15:50 -040054 "ota_metadata_proto_cc",
xunchang24788852019-03-22 16:08:52 -070055
56 // external dependencies
xunchang24788852019-03-22 16:08:52 -070057 "libvintf",
xunchang24788852019-03-22 16:08:52 -070058 ],
59}
60
Kelvin Zhang33c62fc2021-05-14 17:15:50 -040061cc_test_host {
62 name: "libinstall_host_unittests",
63 defaults: [
Aditya Choudharyeb84a172024-02-02 13:56:16 +000064 "libspl_check_defaults",
Kelvin Zhang33c62fc2021-05-14 17:15:50 -040065 ],
66 srcs: [
67 "spl_check_unittests.cpp",
68 ],
69 static_libs: [
70 "libspl_check",
71 ],
72}
73
74cc_defaults {
75 name: "libspl_check_defaults",
76 static_libs: [
77 "libbase",
78 "ota_metadata_proto_cc",
79 "liblog",
80 "libziparchive",
81 "libz",
82 "libprotobuf-cpp-lite",
83 ],
84}
85
86cc_library_static {
87 name: "libspl_check",
88 recovery_available: true,
89 host_supported: true,
90 defaults: [
91 "libspl_check_defaults",
92 ],
93 srcs: ["spl_check.cpp"],
94 export_include_dirs: [
95 "include",
96 ],
97}
98
Tao Bao0deed332019-04-08 11:26:11 -070099cc_library_static {
xunchang24788852019-03-22 16:08:52 -0700100 name: "libinstall",
101 recovery_available: true,
102
103 defaults: [
104 "libinstall_defaults",
105 ],
106
107 srcs: [
108 "adb_install.cpp",
Tianjie Xuf6158eb2019-06-11 16:09:07 -0700109 "fuse_install.cpp",
xunchang24788852019-03-22 16:08:52 -0700110 "install.cpp",
David Anderson89d2d052019-10-15 13:22:20 -0700111 "snapshot_utils.cpp",
xunchang316e9712019-04-12 16:22:15 -0700112 "wipe_data.cpp",
Tao Bao7f19d102019-04-26 22:56:56 -0700113 "wipe_device.cpp",
Kelvin Zhang33c62fc2021-05-14 17:15:50 -0400114 "spl_check.cpp",
xunchang24788852019-03-22 16:08:52 -0700115 ],
116
Tao Bao3305d482019-09-26 00:02:29 -0700117 header_libs: [
118 "libminadbd_headers",
119 ],
120
xunchang24788852019-03-22 16:08:52 -0700121 shared_libs: [
122 "librecovery_ui",
Tom Marshalle3d144e2019-01-04 14:37:31 -0800123 "libvolume_manager",
xunchang24788852019-03-22 16:08:52 -0700124 ],
125
126 export_include_dirs: [
127 "include",
128 ],
129
130 export_shared_lib_headers: [
131 "librecovery_ui",
132 ],
133}