1// 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 "ethernet_ui.cpp", 26 "screen_ui.cpp", 27 "stub_ui.cpp", 28 "ui.cpp", 29 "vr_ui.cpp", 30 "wear_ui.cpp", 31 ], 32 33 export_include_dirs: ["include"], 34 35 static_libs: [ 36 "libminui", 37 "libotautil", 38 ], 39 40 shared_libs: [ 41 "libbase", 42 "libpng", 43 "libz", 44 ], 45} 46 47// Generic device that uses ScreenRecoveryUI. 48cc_library_static { 49 name: "librecovery_ui_default", 50 recovery_available: true, 51 52 defaults: [ 53 "recovery_defaults", 54 ], 55 56 srcs: [ 57 "default_device.cpp", 58 ], 59 60 export_include_dirs: ["include"], 61} 62 63// The default wear device that uses WearRecoveryUI. 64cc_library_static { 65 name: "librecovery_ui_wear", 66 recovery_available: true, 67 68 defaults: [ 69 "recovery_defaults", 70 ], 71 72 srcs: [ 73 "wear_device.cpp", 74 ], 75 76 export_include_dirs: ["include"], 77} 78 79// The default VR device that uses VrRecoveryUI. 80cc_library_static { 81 name: "librecovery_ui_vr", 82 recovery_available: true, 83 84 defaults: [ 85 "recovery_defaults", 86 ], 87 88 srcs: [ 89 "vr_device.cpp", 90 ], 91 92 export_include_dirs: ["include"], 93} 94 95// The default device that uses EthernetRecoveryUI. 96cc_library_static { 97 name: "librecovery_ui_ethernet", 98 recovery_available: true, 99 100 defaults: [ 101 "recovery_defaults", 102 ], 103 104 srcs: [ 105 "ethernet_device.cpp", 106 ], 107 108 shared_libs: [ 109 "libbase", 110 ], 111 112 export_include_dirs: ["include"], 113} 114