blob: c9616ec1581d3976971025e08a064b260df1bef8 [file] [log] [blame]
Tianjie Xu8f397302018-08-20 13:40:47 -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_library {
16 name: "librecovery_ui",
17 recovery_available: true,
18
19 defaults: [
20 "recovery_defaults",
21 ],
22
23 srcs: [
24 "device.cpp",
Alistair Delvaf7b54712020-11-06 16:35:44 -080025 "ethernet_device.cpp",
Hongguang Chen04267272020-04-21 20:58:04 -070026 "ethernet_ui.cpp",
Tianjie Xu8f397302018-08-20 13:40:47 -070027 "screen_ui.cpp",
Tianjie Xu09a8f762019-06-27 15:01:55 -070028 "stub_ui.cpp",
Tianjie Xu8f397302018-08-20 13:40:47 -070029 "ui.cpp",
30 "vr_ui.cpp",
31 "wear_ui.cpp",
32 ],
33
34 export_include_dirs: ["include"],
35
36 static_libs: [
37 "libminui",
38 "libotautil",
39 ],
40
41 shared_libs: [
42 "libbase",
43 "libpng",
44 "libz",
45 ],
46}
47
48// Generic device that uses ScreenRecoveryUI.
49cc_library_static {
50 name: "librecovery_ui_default",
51 recovery_available: true,
52
53 defaults: [
54 "recovery_defaults",
55 ],
56
57 srcs: [
58 "default_device.cpp",
59 ],
60
61 export_include_dirs: ["include"],
62}
63
64// The default wear device that uses WearRecoveryUI.
65cc_library_static {
66 name: "librecovery_ui_wear",
67 recovery_available: true,
68
69 defaults: [
70 "recovery_defaults",
71 ],
72
73 srcs: [
74 "wear_device.cpp",
75 ],
76
77 export_include_dirs: ["include"],
78}
79
80// The default VR device that uses VrRecoveryUI.
81cc_library_static {
82 name: "librecovery_ui_vr",
83 recovery_available: true,
84
85 defaults: [
86 "recovery_defaults",
87 ],
88
89 srcs: [
90 "vr_device.cpp",
91 ],
92
93 export_include_dirs: ["include"],
94}
Hongguang Chen04267272020-04-21 20:58:04 -070095
96// The default device that uses EthernetRecoveryUI.
97cc_library_static {
98 name: "librecovery_ui_ethernet",
99 recovery_available: true,
100
101 defaults: [
102 "recovery_defaults",
103 ],
104
105 srcs: [
Alistair Delvaf7b54712020-11-06 16:35:44 -0800106 "default_ethernet_device.cpp",
Hongguang Chen04267272020-04-21 20:58:04 -0700107 ],
108
109 shared_libs: [
110 "libbase",
111 ],
112
113 export_include_dirs: ["include"],
114}