Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 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 | |
Bob Badour | 29be3f6 | 2021-02-12 18:00:57 -0800 | [diff] [blame] | 15 | package { |
| 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 Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 24 | cc_library { |
| 25 | name: "librecovery_ui", |
| 26 | recovery_available: true, |
| 27 | |
| 28 | defaults: [ |
| 29 | "recovery_defaults", |
| 30 | ], |
| 31 | |
| 32 | srcs: [ |
| 33 | "device.cpp", |
Alistair Delva | f7b5471 | 2020-11-06 16:35:44 -0800 | [diff] [blame] | 34 | "ethernet_device.cpp", |
Hongguang Chen | 0426727 | 2020-04-21 20:58:04 -0700 | [diff] [blame] | 35 | "ethernet_ui.cpp", |
Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 36 | "screen_ui.cpp", |
Tianjie Xu | 09a8f76 | 2019-06-27 15:01:55 -0700 | [diff] [blame] | 37 | "stub_ui.cpp", |
Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 38 | "ui.cpp", |
| 39 | "vr_ui.cpp", |
| 40 | "wear_ui.cpp", |
| 41 | ], |
| 42 | |
| 43 | export_include_dirs: ["include"], |
| 44 | |
| 45 | static_libs: [ |
Chippa-a | 2634f1d | 2023-10-19 00:06:41 +0300 | [diff] [blame] | 46 | "libbatterymonitor", |
| 47 | "libhealthloop", |
Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 48 | "libminui", |
| 49 | "libotautil", |
| 50 | ], |
| 51 | |
| 52 | shared_libs: [ |
Chippa-a | 2634f1d | 2023-10-19 00:06:41 +0300 | [diff] [blame] | 53 | "android.hardware.health-V3-ndk", |
Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 54 | "libbase", |
Chippa-a | 2634f1d | 2023-10-19 00:06:41 +0300 | [diff] [blame] | 55 | "libcutils", |
| 56 | "libhidlbase", |
Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 57 | "libpng", |
Chippa-a | 2634f1d | 2023-10-19 00:06:41 +0300 | [diff] [blame] | 58 | "libutils", |
Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 59 | "libz", |
Tom Marshall | e3d144e | 2019-01-04 14:37:31 -0800 | [diff] [blame] | 60 | "libvolume_manager", |
Tianjie Xu | 8f39730 | 2018-08-20 13:40:47 -0700 | [diff] [blame] | 61 | ], |
| 62 | } |
| 63 | |
| 64 | // Generic device that uses ScreenRecoveryUI. |
| 65 | cc_library_static { |
| 66 | name: "librecovery_ui_default", |
| 67 | recovery_available: true, |
| 68 | |
| 69 | defaults: [ |
| 70 | "recovery_defaults", |
| 71 | ], |
| 72 | |
| 73 | srcs: [ |
| 74 | "default_device.cpp", |
| 75 | ], |
| 76 | |
| 77 | export_include_dirs: ["include"], |
| 78 | } |
| 79 | |
| 80 | // The default wear device that uses WearRecoveryUI. |
| 81 | cc_library_static { |
| 82 | name: "librecovery_ui_wear", |
| 83 | recovery_available: true, |
| 84 | |
| 85 | defaults: [ |
| 86 | "recovery_defaults", |
| 87 | ], |
| 88 | |
| 89 | srcs: [ |
| 90 | "wear_device.cpp", |
| 91 | ], |
| 92 | |
| 93 | export_include_dirs: ["include"], |
| 94 | } |
| 95 | |
| 96 | // The default VR device that uses VrRecoveryUI. |
| 97 | cc_library_static { |
| 98 | name: "librecovery_ui_vr", |
| 99 | recovery_available: true, |
| 100 | |
| 101 | defaults: [ |
| 102 | "recovery_defaults", |
| 103 | ], |
| 104 | |
| 105 | srcs: [ |
| 106 | "vr_device.cpp", |
| 107 | ], |
| 108 | |
| 109 | export_include_dirs: ["include"], |
| 110 | } |
Hongguang Chen | 0426727 | 2020-04-21 20:58:04 -0700 | [diff] [blame] | 111 | |
| 112 | // The default device that uses EthernetRecoveryUI. |
| 113 | cc_library_static { |
| 114 | name: "librecovery_ui_ethernet", |
| 115 | recovery_available: true, |
| 116 | |
| 117 | defaults: [ |
| 118 | "recovery_defaults", |
| 119 | ], |
| 120 | |
| 121 | srcs: [ |
Alistair Delva | f7b5471 | 2020-11-06 16:35:44 -0800 | [diff] [blame] | 122 | "default_ethernet_device.cpp", |
Hongguang Chen | 0426727 | 2020-04-21 20:58:04 -0700 | [diff] [blame] | 123 | ], |
| 124 | |
| 125 | shared_libs: [ |
| 126 | "libbase", |
| 127 | ], |
| 128 | |
| 129 | export_include_dirs: ["include"], |
| 130 | } |