blob: d76344594df00e01583abcef28bee3d0e92241b2 [file] [log] [blame]
Dan Willemsen8bb84642018-11-16 19:14:19 -08001// 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 Badour4c7858c2021-02-12 15:40:29 -080015package {
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 Nyamagoud43473572024-01-03 01:01:17 +000024// 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 {
Dan Willemsen8bb84642018-11-16 19:14:19 -080027 name: "libkeystore-engine",
28
Rajesh Nyamagoud43473572024-01-03 01:01:17 +000029 defaults: [
Rajesh Nyamagoud76311aa2024-08-29 22:28:27 +000030 "keymint_use_latest_hal_aidl_ndk_static",
31 "keystore2_use_latest_aidl_ndk_static",
Rajesh Nyamagoud43473572024-01-03 01:01:17 +000032 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080033 srcs: [
34 "android_engine.cpp",
Janis Danisevskis670122f2021-01-17 22:20:11 -080035 "keystore2_engine.cpp",
Dan Willemsen8bb84642018-11-16 19:14:19 -080036 ],
37
38 cflags: [
39 "-fvisibility=hidden",
40 "-Wall",
41 "-Werror",
42 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080043
44 shared_libs: [
Janis Danisevskis670122f2021-01-17 22:20:11 -080045 "libbinder_ndk",
Dan Willemsen8bb84642018-11-16 19:14:19 -080046 "libcrypto",
47 "libcutils",
Dan Willemsen8bb84642018-11-16 19:14:19 -080048 "liblog",
49 "libbase",
50 "libutils",
51 ],
52
53}
54
Janis Danisevskis2437fde2021-03-08 11:30:11 -080055// 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 Willemsen8bb84642018-11-16 19:14:19 -080059cc_library_shared {
60 name: "libkeystore-engine-wifi-hidl",
61
62 srcs: [
63 "android_engine.cpp",
Janis Danisevskis670122f2021-01-17 22:20:11 -080064 "keystore2_engine.cpp",
Dan Willemsen8bb84642018-11-16 19:14:19 -080065 ],
66
67 cflags: [
68 "-fvisibility=hidden",
69 "-Wall",
70 "-Werror",
Dan Willemsen8bb84642018-11-16 19:14:19 -080071 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080072
73 shared_libs: [
Jiyong Park0d61dd62021-07-27 12:20:26 +090074 "android.system.keystore2-V1-ndk",
Janis Danisevskis670122f2021-01-17 22:20:11 -080075 "libbase",
76 "libbinder_ndk",
Dan Willemsen8bb84642018-11-16 19:14:19 -080077 "libcrypto",
78 "liblog",
Dan Willemsen8bb84642018-11-16 19:14:19 -080079 "libcutils",
80 "libutils",
81 ],
82
83 vendor: true,
84}