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 15cc_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 29 shared_libs: [ 30 "libbinder", 31 "libcrypto", 32 "libcutils", 33 "libhidlbase", 34 "libkeystore_aidl", 35 "libkeystore_binder", 36 "libkeystore_parcelables", 37 "liblog", 38 "libbase", 39 "libutils", 40 ], 41 42} 43 44// This builds a variant of libkeystore-engine that uses a HIDL HAL 45// owned by the WiFi user to perform signing operations. 46cc_library_shared { 47 name: "libkeystore-engine-wifi-hidl", 48 49 srcs: [ 50 "android_engine.cpp", 51 "keystore_backend_hidl.cpp", 52 ], 53 54 cflags: [ 55 "-fvisibility=hidden", 56 "-Wall", 57 "-Werror", 58 "-DBACKEND_WIFI_HIDL", 59 ], 60 61 shared_libs: [ 62 "android.system.wifi.keystore@1.0", 63 "libcrypto", 64 "liblog", 65 "libhidlbase", 66 "libcutils", 67 "libutils", 68 ], 69 70 vendor: true, 71} 72