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 15package { 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 24cc_library { 25 name: "librecovery_ui", 26 recovery_available: true, 27 28 defaults: [ 29 "recovery_defaults", 30 ], 31 32 srcs: [ 33 "device.cpp", 34 "ethernet_device.cpp", 35 "ethernet_ui.cpp", 36 "screen_ui.cpp", 37 "stub_ui.cpp", 38 "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", 54 ], 55} 56 57// Generic device that uses ScreenRecoveryUI. 58cc_library_static { 59 name: "librecovery_ui_default", 60 recovery_available: true, 61 62 defaults: [ 63 "recovery_defaults", 64 ], 65 66 srcs: [ 67 "default_device.cpp", 68 ], 69 70 export_include_dirs: ["include"], 71} 72 73// The default wear device that uses WearRecoveryUI. 74cc_library_static { 75 name: "librecovery_ui_wear", 76 recovery_available: true, 77 78 defaults: [ 79 "recovery_defaults", 80 ], 81 82 srcs: [ 83 "wear_device.cpp", 84 ], 85 86 export_include_dirs: ["include"], 87} 88 89// The default VR device that uses VrRecoveryUI. 90cc_library_static { 91 name: "librecovery_ui_vr", 92 recovery_available: true, 93 94 defaults: [ 95 "recovery_defaults", 96 ], 97 98 srcs: [ 99 "vr_device.cpp", 100 ], 101 102 export_include_dirs: ["include"], 103} 104 105// The default device that uses EthernetRecoveryUI. 106cc_library_static { 107 name: "librecovery_ui_ethernet", 108 recovery_available: true, 109 110 defaults: [ 111 "recovery_defaults", 112 ], 113 114 srcs: [ 115 "default_ethernet_device.cpp", 116 ], 117 118 shared_libs: [ 119 "libbase", 120 ], 121 122 export_include_dirs: ["include"], 123} 124