blob: bed3bc5045c586e4596eb2de579cd54442d56736 [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
15cc_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",
xunchang24788852019-03-22 16:08:52 -070031 "liblog",
32 "libselinux",
33 "libtinyxml2",
34 "libutils",
35 "libz",
36 "libziparchive",
37 ],
38
39 static_libs: [
Tao Baoe3f09a72019-10-01 11:55:36 -070040 "librecovery_utils",
xunchang24788852019-03-22 16:08:52 -070041 "libotautil",
David Anderson89d2d052019-10-15 13:22:20 -070042 "libsnapshot_nobinder",
xunchang24788852019-03-22 16:08:52 -070043
44 // external dependencies
xunchang24788852019-03-22 16:08:52 -070045 "libvintf",
xunchang24788852019-03-22 16:08:52 -070046 ],
47}
48
Tao Bao0deed332019-04-08 11:26:11 -070049cc_library_static {
xunchang24788852019-03-22 16:08:52 -070050 name: "libinstall",
51 recovery_available: true,
52
53 defaults: [
54 "libinstall_defaults",
55 ],
56
57 srcs: [
58 "adb_install.cpp",
59 "asn1_decoder.cpp",
Tianjie Xuf6158eb2019-06-11 16:09:07 -070060 "fuse_install.cpp",
xunchang24788852019-03-22 16:08:52 -070061 "install.cpp",
62 "package.cpp",
David Anderson89d2d052019-10-15 13:22:20 -070063 "snapshot_utils.cpp",
xunchang24788852019-03-22 16:08:52 -070064 "verifier.cpp",
xunchang316e9712019-04-12 16:22:15 -070065 "wipe_data.cpp",
Tao Bao7f19d102019-04-26 22:56:56 -070066 "wipe_device.cpp",
xunchang24788852019-03-22 16:08:52 -070067 ],
68
Tao Bao3305d482019-09-26 00:02:29 -070069 header_libs: [
70 "libminadbd_headers",
71 ],
72
xunchang24788852019-03-22 16:08:52 -070073 shared_libs: [
74 "librecovery_ui",
75 ],
76
77 export_include_dirs: [
78 "include",
79 ],
80
81 export_shared_lib_headers: [
82 "librecovery_ui",
83 ],
84}