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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "system_security_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-BSD 21 default_applicable_licenses: ["system_security_license"], 22} 23 24cc_library_shared { 25 name: "libkeystore-engine", 26 27 srcs: [ 28 "android_engine.cpp", 29 "keystore2_engine.cpp", 30 ], 31 32 cflags: [ 33 "-fvisibility=hidden", 34 "-Wall", 35 "-Werror", 36 ], 37 38 shared_libs: [ 39 "android.system.keystore2-V1-ndk_platform", 40 "libbinder_ndk", 41 "libcrypto", 42 "libcutils", 43 "liblog", 44 "libbase", 45 "libutils", 46 ], 47 48} 49 50// This builds a variant of libkeystore-engine that is available vendor. 51// It used to use a HIDL interface to connect to keystore through wificond. 52// Now That Keystore 2.0 has a vintf stable interface this library is 53// actually identical to libkeystore-engine. 54cc_library_shared { 55 name: "libkeystore-engine-wifi-hidl", 56 57 srcs: [ 58 "android_engine.cpp", 59 "keystore2_engine.cpp", 60 ], 61 62 cflags: [ 63 "-fvisibility=hidden", 64 "-Wall", 65 "-Werror", 66 ], 67 68 shared_libs: [ 69 "android.system.keystore2-V1-ndk_platform", 70 "libbase", 71 "libbinder_ndk", 72 "libcrypto", 73 "liblog", 74 "libcutils", 75 "libutils", 76 ], 77 78 vendor: true, 79} 80