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