blob: 149ef8acc1e2c6261e1ca5353f505c78079f613d [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",
25 "screen_ui.cpp",
Tianjie Xu09a8f762019-06-27 15:01:55 -070026 "stub_ui.cpp",
Tianjie Xu8f397302018-08-20 13:40:47 -070027 "ui.cpp",
28 "vr_ui.cpp",
29 "wear_ui.cpp",
30 ],
31
32 export_include_dirs: ["include"],
33
34 static_libs: [
35 "libminui",
36 "libotautil",
37 ],
38
39 shared_libs: [
40 "libbase",
41 "libpng",
42 "libz",
43 ],
44}
45
46// Generic device that uses ScreenRecoveryUI.
47cc_library_static {
48 name: "librecovery_ui_default",
49 recovery_available: true,
50
51 defaults: [
52 "recovery_defaults",
53 ],
54
55 srcs: [
56 "default_device.cpp",
57 ],
58
59 export_include_dirs: ["include"],
60}
61
62// The default wear device that uses WearRecoveryUI.
63cc_library_static {
64 name: "librecovery_ui_wear",
65 recovery_available: true,
66
67 defaults: [
68 "recovery_defaults",
69 ],
70
71 srcs: [
72 "wear_device.cpp",
73 ],
74
75 export_include_dirs: ["include"],
76}
77
78// The default VR device that uses VrRecoveryUI.
79cc_library_static {
80 name: "librecovery_ui_vr",
81 recovery_available: true,
82
83 defaults: [
84 "recovery_defaults",
85 ],
86
87 srcs: [
88 "vr_device.cpp",
89 ],
90
91 export_include_dirs: ["include"],
92}