Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame^] | 1 | // Copyright (C) 2012 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_library_shared { |
| 16 | name: "libkeystore-engine", |
| 17 | |
| 18 | srcs: [ |
| 19 | "android_engine.cpp", |
| 20 | "keystore_backend_binder.cpp", |
| 21 | ], |
| 22 | |
| 23 | cflags: [ |
| 24 | "-fvisibility=hidden", |
| 25 | "-Wall", |
| 26 | "-Werror", |
| 27 | ], |
| 28 | cpp_std: "c++17", |
| 29 | |
| 30 | shared_libs: [ |
| 31 | "libbinder", |
| 32 | "libcrypto", |
| 33 | "libcutils", |
| 34 | "libhidlbase", |
| 35 | "libkeystore_aidl", |
| 36 | "libkeystore_binder", |
| 37 | "libkeystore_parcelables", |
| 38 | "liblog", |
| 39 | "libbase", |
| 40 | "libutils", |
| 41 | ], |
| 42 | |
| 43 | } |
| 44 | |
| 45 | // This builds a variant of libkeystore-engine that uses a HIDL HAL |
| 46 | // owned by the WiFi user to perform signing operations. |
| 47 | cc_library_shared { |
| 48 | name: "libkeystore-engine-wifi-hidl", |
| 49 | |
| 50 | srcs: [ |
| 51 | "android_engine.cpp", |
| 52 | "keystore_backend_hidl.cpp", |
| 53 | ], |
| 54 | |
| 55 | cflags: [ |
| 56 | "-fvisibility=hidden", |
| 57 | "-Wall", |
| 58 | "-Werror", |
| 59 | "-DBACKEND_WIFI_HIDL", |
| 60 | ], |
| 61 | cpp_std: "c++17", |
| 62 | |
| 63 | shared_libs: [ |
| 64 | "android.system.wifi.keystore@1.0", |
| 65 | "libcrypto", |
| 66 | "liblog", |
| 67 | "libhidlbase", |
| 68 | "libhidltransport", |
| 69 | "libcutils", |
| 70 | "libutils", |
| 71 | ], |
| 72 | |
| 73 | vendor: true, |
| 74 | } |