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: [ |
Tianjie Xu | 4d9e62d | 2018-05-11 10:41:44 -0700 | [diff] [blame] | 36 | "care_map.proto", |
Tao Bao | afb9fc2 | 2018-04-19 14:49:32 -0700 | [diff] [blame] | 37 | "update_verifier.cpp", |
| 38 | ], |
| 39 | |
| 40 | export_include_dirs: [ |
| 41 | "include", |
| 42 | ], |
| 43 | |
| 44 | static_libs: [ |
| 45 | "libotautil", |
| 46 | ], |
| 47 | |
| 48 | shared_libs: [ |
| 49 | "android.hardware.boot@1.0", |
| 50 | "libbase", |
| 51 | "libcutils", |
| 52 | ], |
Tianjie Xu | 4d9e62d | 2018-05-11 10:41:44 -0700 | [diff] [blame] | 53 | |
| 54 | proto: { |
| 55 | type: "lite", |
| 56 | export_proto_headers: true, |
| 57 | } |
Tao Bao | afb9fc2 | 2018-04-19 14:49:32 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | cc_binary { |
| 61 | name: "update_verifier", |
| 62 | |
| 63 | defaults: [ |
| 64 | "update_verifier_defaults", |
| 65 | ], |
| 66 | |
| 67 | srcs: [ |
| 68 | "update_verifier_main.cpp", |
| 69 | ], |
| 70 | |
| 71 | static_libs: [ |
| 72 | "libupdate_verifier", |
| 73 | "libotautil", |
| 74 | ], |
| 75 | |
| 76 | shared_libs: [ |
| 77 | "android.hardware.boot@1.0", |
| 78 | "libbase", |
| 79 | "libcutils", |
| 80 | "libhardware", |
| 81 | "libhidlbase", |
| 82 | "liblog", |
Tianjie Xu | 4d9e62d | 2018-05-11 10:41:44 -0700 | [diff] [blame] | 83 | "libprotobuf-cpp-lite", |
Tao Bao | afb9fc2 | 2018-04-19 14:49:32 -0700 | [diff] [blame] | 84 | "libutils", |
| 85 | ], |
| 86 | |
| 87 | init_rc: [ |
| 88 | "update_verifier.rc", |
| 89 | ], |
| 90 | } |