| 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", | 
| Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 29 | "keystore2_engine.cpp", | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 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: [ | 
| Jiyong Park | 0d61dd6 | 2021-07-27 12:20:26 +0900 | [diff] [blame] | 39 | "android.system.keystore2-V1-ndk", | 
| Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 40 | "libbinder_ndk", | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 41 | "libcrypto", | 
|  | 42 | "libcutils", | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 43 | "liblog", | 
|  | 44 | "libbase", | 
|  | 45 | "libutils", | 
|  | 46 | ], | 
|  | 47 |  | 
|  | 48 | } | 
|  | 49 |  | 
| Janis Danisevskis | 2437fde | 2021-03-08 11:30:11 -0800 | [diff] [blame] | 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. | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 54 | cc_library_shared { | 
|  | 55 | name: "libkeystore-engine-wifi-hidl", | 
|  | 56 |  | 
|  | 57 | srcs: [ | 
|  | 58 | "android_engine.cpp", | 
| Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 59 | "keystore2_engine.cpp", | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 60 | ], | 
|  | 61 |  | 
|  | 62 | cflags: [ | 
|  | 63 | "-fvisibility=hidden", | 
|  | 64 | "-Wall", | 
|  | 65 | "-Werror", | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 66 | ], | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 67 |  | 
|  | 68 | shared_libs: [ | 
| Jiyong Park | 0d61dd6 | 2021-07-27 12:20:26 +0900 | [diff] [blame] | 69 | "android.system.keystore2-V1-ndk", | 
| Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 70 | "libbase", | 
|  | 71 | "libbinder_ndk", | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 72 | "libcrypto", | 
|  | 73 | "liblog", | 
| Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 74 | "libcutils", | 
|  | 75 | "libutils", | 
|  | 76 | ], | 
|  | 77 |  | 
|  | 78 | vendor: true, | 
|  | 79 | } |