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: [ |
Jerry Zhang | cadf4ed | 2018-05-02 16:56:00 -0700 | [diff] [blame^] | 92 | "logging.cpp", |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 93 | "recovery-persist.cpp", |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 94 | ], |
| 95 | |
| 96 | shared_libs: [ |
| 97 | "libbase", |
| 98 | "liblog", |
| 99 | ], |
| 100 | |
Jerry Zhang | cadf4ed | 2018-05-02 16:56:00 -0700 | [diff] [blame^] | 101 | static_libs: [ |
| 102 | "libotautil", |
| 103 | ], |
| 104 | |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 105 | init_rc: [ |
| 106 | "recovery-persist.rc", |
| 107 | ], |
| 108 | } |
| 109 | |
| 110 | // The dynamic executable that runs at init. |
| 111 | cc_binary { |
| 112 | name: "recovery-refresh", |
| 113 | |
| 114 | defaults: [ |
| 115 | "recovery_defaults", |
| 116 | ], |
| 117 | |
| 118 | srcs: [ |
Jerry Zhang | cadf4ed | 2018-05-02 16:56:00 -0700 | [diff] [blame^] | 119 | "logging.cpp", |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 120 | "recovery-refresh.cpp", |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 121 | ], |
| 122 | |
| 123 | shared_libs: [ |
| 124 | "libbase", |
| 125 | "liblog", |
| 126 | ], |
| 127 | |
Jerry Zhang | cadf4ed | 2018-05-02 16:56:00 -0700 | [diff] [blame^] | 128 | static_libs: [ |
| 129 | "libotautil", |
| 130 | ], |
| 131 | |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 132 | init_rc: [ |
| 133 | "recovery-refresh.rc", |
| 134 | ], |
| 135 | } |