Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | |
| 15 | cc_defaults { |
| 16 | name: "recovery_defaults", |
| 17 | |
| 18 | cflags: [ |
| 19 | "-Wall", |
| 20 | "-Werror", |
| 21 | ], |
| 22 | } |
| 23 | |
| 24 | // Generic device that uses ScreenRecoveryUI. |
| 25 | cc_library_static { |
| 26 | name: "librecovery_ui_default", |
| 27 | |
| 28 | defaults: [ |
| 29 | "recovery_defaults", |
| 30 | ], |
| 31 | |
| 32 | srcs: [ |
| 33 | "default_device.cpp", |
| 34 | ], |
| 35 | } |
| 36 | |
| 37 | // The default wear device that uses WearRecoveryUI. |
| 38 | cc_library_static { |
| 39 | name: "librecovery_ui_wear", |
| 40 | |
| 41 | defaults: [ |
| 42 | "recovery_defaults", |
| 43 | ], |
| 44 | |
| 45 | srcs: [ |
| 46 | "wear_device.cpp", |
| 47 | ], |
| 48 | } |
| 49 | |
| 50 | // The default VR device that uses VrRecoveryUI. |
| 51 | cc_library_static { |
| 52 | name: "librecovery_ui_vr", |
| 53 | |
| 54 | defaults: [ |
| 55 | "recovery_defaults", |
| 56 | ], |
| 57 | |
| 58 | srcs: [ |
| 59 | "vr_device.cpp", |
| 60 | ], |
| 61 | } |
| 62 | |
| 63 | cc_library_static { |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 64 | name: "libverifier", |
| 65 | |
| 66 | defaults: [ |
| 67 | "recovery_defaults", |
| 68 | ], |
| 69 | |
| 70 | srcs: [ |
| 71 | "asn1_decoder.cpp", |
| 72 | "verifier.cpp", |
| 73 | ], |
| 74 | |
| 75 | static_libs: [ |
| 76 | "libbase", |
| 77 | "libcrypto", |
| 78 | "libcrypto_utils", |
| 79 | "libotautil", |
| 80 | ], |
| 81 | } |
| 82 | |
| 83 | // The dynamic executable that runs after /data mounts. |
| 84 | cc_binary { |
| 85 | name: "recovery-persist", |
| 86 | |
| 87 | defaults: [ |
| 88 | "recovery_defaults", |
| 89 | ], |
| 90 | |
| 91 | srcs: [ |
| 92 | "recovery-persist.cpp", |
| 93 | "rotate_logs.cpp", |
| 94 | ], |
| 95 | |
| 96 | shared_libs: [ |
| 97 | "libbase", |
| 98 | "liblog", |
| 99 | ], |
| 100 | |
| 101 | init_rc: [ |
| 102 | "recovery-persist.rc", |
| 103 | ], |
| 104 | } |
| 105 | |
| 106 | // The dynamic executable that runs at init. |
| 107 | cc_binary { |
| 108 | name: "recovery-refresh", |
| 109 | |
| 110 | defaults: [ |
| 111 | "recovery_defaults", |
| 112 | ], |
| 113 | |
| 114 | srcs: [ |
| 115 | "recovery-refresh.cpp", |
| 116 | "rotate_logs.cpp", |
| 117 | ], |
| 118 | |
| 119 | shared_libs: [ |
| 120 | "libbase", |
| 121 | "liblog", |
| 122 | ], |
| 123 | |
| 124 | init_rc: [ |
| 125 | "recovery-refresh.rc", |
| 126 | ], |
| 127 | } |