blob: 97126f5b1f324cdc8fb5fb31b77288a855d531f4 [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: [
Tao Bao818f9382018-08-06 15:52:24 -070019 "-D_FILE_OFFSET_BITS=64",
20
21 // Must be the same as RECOVERY_API_VERSION.
22 "-DRECOVERY_API_VERSION=3",
23
Tao Baod2f2ad62018-03-23 23:24:25 -070024 "-Wall",
25 "-Werror",
26 ],
27}
28
29// Generic device that uses ScreenRecoveryUI.
30cc_library_static {
31 name: "librecovery_ui_default",
Tao Bao818f9382018-08-06 15:52:24 -070032 recovery_available: true,
Tao Baod2f2ad62018-03-23 23:24:25 -070033
34 defaults: [
35 "recovery_defaults",
36 ],
37
38 srcs: [
39 "default_device.cpp",
40 ],
41}
42
43// The default wear device that uses WearRecoveryUI.
44cc_library_static {
45 name: "librecovery_ui_wear",
Tao Bao818f9382018-08-06 15:52:24 -070046 recovery_available: true,
Tao Baod2f2ad62018-03-23 23:24:25 -070047
48 defaults: [
49 "recovery_defaults",
50 ],
51
52 srcs: [
53 "wear_device.cpp",
54 ],
55}
56
57// The default VR device that uses VrRecoveryUI.
58cc_library_static {
59 name: "librecovery_ui_vr",
Tao Bao818f9382018-08-06 15:52:24 -070060 recovery_available: true,
Tao Baod2f2ad62018-03-23 23:24:25 -070061
62 defaults: [
63 "recovery_defaults",
64 ],
65
66 srcs: [
67 "vr_device.cpp",
68 ],
69}
70
71cc_library_static {
Tao Baod2f2ad62018-03-23 23:24:25 -070072 name: "libverifier",
Tao Bao818f9382018-08-06 15:52:24 -070073 recovery_available: true,
Tao Baod2f2ad62018-03-23 23:24:25 -070074
75 defaults: [
76 "recovery_defaults",
77 ],
78
79 srcs: [
80 "asn1_decoder.cpp",
81 "verifier.cpp",
82 ],
83
Tao Bao818f9382018-08-06 15:52:24 -070084 shared_libs: [
Tao Baod2f2ad62018-03-23 23:24:25 -070085 "libbase",
86 "libcrypto",
87 "libcrypto_utils",
Tao Bao818f9382018-08-06 15:52:24 -070088 ],
89
90 static_libs: [
Tao Baod2f2ad62018-03-23 23:24:25 -070091 "libotautil",
92 ],
93}
94
95// The dynamic executable that runs after /data mounts.
96cc_binary {
97 name: "recovery-persist",
98
99 defaults: [
100 "recovery_defaults",
101 ],
102
103 srcs: [
Jerry Zhang152933a2018-05-02 16:56:00 -0700104 "logging.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -0700105 "recovery-persist.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -0700106 ],
107
108 shared_libs: [
109 "libbase",
110 "liblog",
111 ],
112
Jerry Zhang152933a2018-05-02 16:56:00 -0700113 static_libs: [
114 "libotautil",
115 ],
116
Tao Baod2f2ad62018-03-23 23:24:25 -0700117 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: [
Jerry Zhang152933a2018-05-02 16:56:00 -0700131 "logging.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -0700132 "recovery-refresh.cpp",
Tao Baod2f2ad62018-03-23 23:24:25 -0700133 ],
134
135 shared_libs: [
136 "libbase",
137 "liblog",
138 ],
139
Jerry Zhang152933a2018-05-02 16:56:00 -0700140 static_libs: [
141 "libotautil",
142 ],
143
Tao Baod2f2ad62018-03-23 23:24:25 -0700144 init_rc: [
145 "recovery-refresh.rc",
146 ],
147}