blob: 271d0799d088e6aedef6d4c8b835d42447d7eabd [file] [log] [blame]
Tao Baoe3f09a72019-10-01 11:55:36 -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
15// A utility lib that's local to recovery (in contrast, libotautil is exposed to device-specific
16// recovery_ui lib as well as device-specific updater).
17cc_library_static {
18 name: "librecovery_utils",
19
20 recovery_available: true,
21
22 defaults: [
23 "recovery_defaults",
24 ],
25
26 srcs: [
27 "logging.cpp",
28 "parse_install_logs.cpp",
29 "roots.cpp",
30 "thermalutil.cpp",
31 ],
32
33 shared_libs: [
34 "libbase",
35 "libext4_utils",
36 "libfs_mgr",
37 "libselinux",
38 ],
39
40 export_include_dirs: [
41 "include",
42 ],
43
44 include_dirs: [
45 "system/vold",
46 ],
47
48 static_libs: [
49 "libotautil",
50
51 // external dependency
52 "libfstab",
53 ],
54
55 export_static_lib_headers: [
56 "libfstab",
57 ],
58
59 // Should avoid exposing to the libs that might be used in device-specific codes (e.g.
60 // libedify, libotautil, librecovery_ui).
61 visibility: [
62 "//bootable/recovery",
63 "//bootable/recovery/install",
64 "//bootable/recovery/tests",
65 ],
66}