Tao Bao | afb9fc2 | 2018-04-19 14:49:32 -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: "update_verifier_defaults", |
| 17 | |
| 18 | cflags: [ |
| 19 | "-Wall", |
| 20 | "-Werror", |
| 21 | ], |
| 22 | |
| 23 | local_include_dirs: [ |
| 24 | "include", |
| 25 | ], |
| 26 | } |
| 27 | |
| 28 | cc_library_static { |
| 29 | name: "libupdate_verifier", |
| 30 | |
| 31 | defaults: [ |
| 32 | "update_verifier_defaults", |
| 33 | ], |
| 34 | |
| 35 | srcs: [ |
| 36 | "update_verifier.cpp", |
| 37 | ], |
| 38 | |
| 39 | export_include_dirs: [ |
| 40 | "include", |
| 41 | ], |
| 42 | |
| 43 | static_libs: [ |
| 44 | "libotautil", |
| 45 | ], |
| 46 | |
| 47 | shared_libs: [ |
| 48 | "android.hardware.boot@1.0", |
| 49 | "libbase", |
| 50 | "libcutils", |
| 51 | ], |
| 52 | } |
| 53 | |
| 54 | cc_binary { |
| 55 | name: "update_verifier", |
| 56 | |
| 57 | defaults: [ |
| 58 | "update_verifier_defaults", |
| 59 | ], |
| 60 | |
| 61 | srcs: [ |
| 62 | "update_verifier_main.cpp", |
| 63 | ], |
| 64 | |
| 65 | static_libs: [ |
| 66 | "libupdate_verifier", |
| 67 | "libotautil", |
| 68 | ], |
| 69 | |
| 70 | shared_libs: [ |
| 71 | "android.hardware.boot@1.0", |
| 72 | "libbase", |
| 73 | "libcutils", |
| 74 | "libhardware", |
| 75 | "libhidlbase", |
| 76 | "liblog", |
| 77 | "libutils", |
| 78 | ], |
| 79 | |
| 80 | init_rc: [ |
| 81 | "update_verifier.rc", |
| 82 | ], |
| 83 | } |