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 | |
Rajesh Nyamagoud | 4347357 | 2024-01-03 01:01:17 +0000 | [diff] [blame] | 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`. |
| 26 | cc_library { |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 27 | name: "libkeystore-engine", |
| 28 | |
Rajesh Nyamagoud | 4347357 | 2024-01-03 01:01:17 +0000 | [diff] [blame] | 29 | defaults: [ |
Rajesh Nyamagoud | 76311aa | 2024-08-29 22:28:27 +0000 | [diff] [blame] | 30 | "keymint_use_latest_hal_aidl_ndk_static", |
| 31 | "keystore2_use_latest_aidl_ndk_static", |
Rajesh Nyamagoud | 4347357 | 2024-01-03 01:01:17 +0000 | [diff] [blame] | 32 | ], |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 33 | srcs: [ |
| 34 | "android_engine.cpp", |
Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 35 | "keystore2_engine.cpp", |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 36 | ], |
| 37 | |
| 38 | cflags: [ |
| 39 | "-fvisibility=hidden", |
| 40 | "-Wall", |
| 41 | "-Werror", |
| 42 | ], |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 43 | |
| 44 | shared_libs: [ |
Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 45 | "libbinder_ndk", |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 46 | "libcrypto", |
| 47 | "libcutils", |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 48 | "liblog", |
| 49 | "libbase", |
| 50 | "libutils", |
| 51 | ], |
| 52 | |
| 53 | } |
| 54 | |
Janis Danisevskis | 2437fde | 2021-03-08 11:30:11 -0800 | [diff] [blame] | 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. |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 59 | cc_library_shared { |
| 60 | name: "libkeystore-engine-wifi-hidl", |
| 61 | |
| 62 | srcs: [ |
| 63 | "android_engine.cpp", |
Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 64 | "keystore2_engine.cpp", |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 65 | ], |
| 66 | |
| 67 | cflags: [ |
| 68 | "-fvisibility=hidden", |
| 69 | "-Wall", |
| 70 | "-Werror", |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 71 | ], |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 72 | |
| 73 | shared_libs: [ |
Jiyong Park | 0d61dd6 | 2021-07-27 12:20:26 +0900 | [diff] [blame] | 74 | "android.system.keystore2-V1-ndk", |
Janis Danisevskis | 670122f | 2021-01-17 22:20:11 -0800 | [diff] [blame] | 75 | "libbase", |
| 76 | "libbinder_ndk", |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 77 | "libcrypto", |
| 78 | "liblog", |
Dan Willemsen | 8bb8464 | 2018-11-16 19:14:19 -0800 | [diff] [blame] | 79 | "libcutils", |
| 80 | "libutils", |
| 81 | ], |
| 82 | |
| 83 | vendor: true, |
| 84 | } |