blob: 454947b0c06928d8a5f2e6a2ae957748b4819e58 [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
Bob Badour29be3f62021-02-12 18:00:57 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "bootable_recovery_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["bootable_recovery_license"],
22}
23
Tianjie Xu8f397302018-08-20 13:40:47 -070024cc_library {
25 name: "librecovery_ui",
26 recovery_available: true,
27
28 defaults: [
29 "recovery_defaults",
30 ],
31
32 srcs: [
33 "device.cpp",
Alistair Delvaf7b54712020-11-06 16:35:44 -080034 "ethernet_device.cpp",
Hongguang Chen04267272020-04-21 20:58:04 -070035 "ethernet_ui.cpp",
Tianjie Xu8f397302018-08-20 13:40:47 -070036 "screen_ui.cpp",
Tianjie Xu09a8f762019-06-27 15:01:55 -070037 "stub_ui.cpp",
Tianjie Xu8f397302018-08-20 13:40:47 -070038 "ui.cpp",
39 "vr_ui.cpp",
40 "wear_ui.cpp",
41 ],
42
43 export_include_dirs: ["include"],
44
45 static_libs: [
46 "libminui",
47 "libotautil",
48 ],
49
50 shared_libs: [
51 "libbase",
52 "libpng",
53 "libz",
Tom Marshall3e101752019-01-04 14:37:31 -080054 "libvolume_manager",
Tianjie Xu8f397302018-08-20 13:40:47 -070055 ],
56}
57
58// Generic device that uses ScreenRecoveryUI.
59cc_library_static {
60 name: "librecovery_ui_default",
61 recovery_available: true,
62
63 defaults: [
64 "recovery_defaults",
65 ],
66
67 srcs: [
68 "default_device.cpp",
69 ],
70
71 export_include_dirs: ["include"],
72}
73
74// The default wear device that uses WearRecoveryUI.
75cc_library_static {
76 name: "librecovery_ui_wear",
77 recovery_available: true,
78
79 defaults: [
80 "recovery_defaults",
81 ],
82
83 srcs: [
84 "wear_device.cpp",
85 ],
86
87 export_include_dirs: ["include"],
88}
89
90// The default VR device that uses VrRecoveryUI.
91cc_library_static {
92 name: "librecovery_ui_vr",
93 recovery_available: true,
94
95 defaults: [
96 "recovery_defaults",
97 ],
98
99 srcs: [
100 "vr_device.cpp",
101 ],
102
103 export_include_dirs: ["include"],
104}
Hongguang Chen04267272020-04-21 20:58:04 -0700105
106// The default device that uses EthernetRecoveryUI.
107cc_library_static {
108 name: "librecovery_ui_ethernet",
109 recovery_available: true,
110
111 defaults: [
112 "recovery_defaults",
113 ],
114
115 srcs: [
Alistair Delvaf7b54712020-11-06 16:35:44 -0800116 "default_ethernet_device.cpp",
Hongguang Chen04267272020-04-21 20:58:04 -0700117 ],
118
119 shared_libs: [
120 "libbase",
121 ],
122
123 export_include_dirs: ["include"],
124}