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 24// This is expected to be cc_test_library but due to issue mentioned in b/298668920, b/314110490 25// we are creating cc_library and using static library to link with `keystore_client_tests`. 26cc_library { 27 name: "libkeystore-engine", 28 29 defaults: [ 30 "keymint_use_latest_hal_aidl_ndk_static", 31 "keystore2_use_latest_aidl_ndk_static", 32 ], 33 srcs: [ 34 "android_engine.cpp", 35 "keystore2_engine.cpp", 36 ], 37 38 cflags: [ 39 "-fvisibility=hidden", 40 "-Wall", 41 "-Werror", 42 ], 43 44 shared_libs: [ 45 "libbinder_ndk", 46 "libcrypto", 47 "libcutils", 48 "liblog", 49 "libbase", 50 "libutils", 51 ], 52 53} 54 55// This builds a variant of libkeystore-engine that is available vendor. 56// It used to use a HIDL interface to connect to keystore through wificond. 57// Now That Keystore 2.0 has a vintf stable interface this library is 58// actually identical to libkeystore-engine. 59cc_library_shared { 60 name: "libkeystore-engine-wifi-hidl", 61 62 srcs: [ 63 "android_engine.cpp", 64 "keystore2_engine.cpp", 65 ], 66 67 cflags: [ 68 "-fvisibility=hidden", 69 "-Wall", 70 "-Werror", 71 ], 72 73 shared_libs: [ 74 "android.system.keystore2-V1-ndk", 75 "libbase", 76 "libbinder_ndk", 77 "libcrypto", 78 "liblog", 79 "libcutils", 80 "libutils", 81 ], 82 83 vendor: true, 84} 85