blob: 22c90bd3e2a5c0414d64e1259dbc3110f88080ad [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 {
Tao Baod2f2ad62018-03-23 23:24:25 -070064 name: "libverifier",
65
66 defaults: [
67 "recovery_defaults",
68 ],
69
70 srcs: [
71 "asn1_decoder.cpp",
72 "verifier.cpp",
73 ],
74
75 static_libs: [
76 "libbase",
77 "libcrypto",
78 "libcrypto_utils",
79 "libotautil",
80 ],
81}
82
83// The dynamic executable that runs after /data mounts.
84cc_binary {
85 name: "recovery-persist",
86
87 defaults: [
88 "recovery_defaults",
89 ],
90
91 srcs: [
Jerry Zhang152933a2018-05-02 16:56:00 -070092 "logging.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -070093 "recovery-persist.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -070094 ],
95
96 shared_libs: [
97 "libbase",
98 "liblog",
99 ],
100
Jerry Zhang152933a2018-05-02 16:56:00 -0700101 static_libs: [
102 "libotautil",
103 ],
104
Tao Baod2f2ad62018-03-23 23:24:25 -0700105 init_rc: [
106 "recovery-persist.rc",
107 ],
108}
109
110// The dynamic executable that runs at init.
111cc_binary {
112 name: "recovery-refresh",
113
114 defaults: [
115 "recovery_defaults",
116 ],
117
118 srcs: [
Jerry Zhang152933a2018-05-02 16:56:00 -0700119 "logging.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -0700120 "recovery-refresh.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -0700121 ],
122
123 shared_libs: [
124 "libbase",
125 "liblog",
126 ],
127
Jerry Zhang152933a2018-05-02 16:56:00 -0700128 static_libs: [
129 "libotautil",
130 ],
131
Tao Baod2f2ad62018-03-23 23:24:25 -0700132 init_rc: [
133 "recovery-refresh.rc",
134 ],
135}