blob: 6c04504ea2362d6315881f7d6015f257f053ac19 [file] [log] [blame]
Tao Baod2f2ad62018-03-23 23:24:25 -07001// Copyright (C) 2018 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: "recovery_defaults",
17
18 cflags: [
19 "-Wall",
20 "-Werror",
21 ],
22}
23
24// Generic device that uses ScreenRecoveryUI.
25cc_library_static {
26 name: "librecovery_ui_default",
27
28 defaults: [
29 "recovery_defaults",
30 ],
31
32 srcs: [
33 "default_device.cpp",
34 ],
35}
36
37// The default wear device that uses WearRecoveryUI.
38cc_library_static {
39 name: "librecovery_ui_wear",
40
41 defaults: [
42 "recovery_defaults",
43 ],
44
45 srcs: [
46 "wear_device.cpp",
47 ],
48}
49
50// The default VR device that uses VrRecoveryUI.
51cc_library_static {
52 name: "librecovery_ui_vr",
53
54 defaults: [
55 "recovery_defaults",
56 ],
57
58 srcs: [
59 "vr_device.cpp",
60 ],
61}
62
63cc_library_static {
64 name: "libmounts",
65
66 defaults: [
67 "recovery_defaults",
68 ],
69
70 srcs: [
71 "mounts.cpp",
72 ],
73
74 static_libs: [
75 "libbase",
76 ],
77}
78
79cc_library_static {
80 name: "libverifier",
81
82 defaults: [
83 "recovery_defaults",
84 ],
85
86 srcs: [
87 "asn1_decoder.cpp",
88 "verifier.cpp",
89 ],
90
91 static_libs: [
92 "libbase",
93 "libcrypto",
94 "libcrypto_utils",
95 "libotautil",
96 ],
97}
98
99// The dynamic executable that runs after /data mounts.
100cc_binary {
101 name: "recovery-persist",
102
103 defaults: [
104 "recovery_defaults",
105 ],
106
107 srcs: [
108 "recovery-persist.cpp",
109 "rotate_logs.cpp",
110 ],
111
112 shared_libs: [
113 "libbase",
114 "liblog",
115 ],
116
117 init_rc: [
118 "recovery-persist.rc",
119 ],
120}
121
122// The dynamic executable that runs at init.
123cc_binary {
124 name: "recovery-refresh",
125
126 defaults: [
127 "recovery_defaults",
128 ],
129
130 srcs: [
131 "recovery-refresh.cpp",
132 "rotate_logs.cpp",
133 ],
134
135 shared_libs: [
136 "libbase",
137 "liblog",
138 ],
139
140 init_rc: [
141 "recovery-refresh.rc",
142 ],
143}