blob: 3087675b54e7131b4dc4d14afdd70b5e365bfd70 [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 Nyamagoud21e7cad2023-12-12 18:34:14 +000024cc_test_library {
Dan Willemsen8bb84642018-11-16 19:14:19 -080025 name: "libkeystore-engine",
26
27 srcs: [
28 "android_engine.cpp",
Janis Danisevskis670122f2021-01-17 22:20:11 -080029 "keystore2_engine.cpp",
Dan Willemsen8bb84642018-11-16 19:14:19 -080030 ],
31
32 cflags: [
33 "-fvisibility=hidden",
34 "-Wall",
35 "-Werror",
36 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080037
38 shared_libs: [
Rajesh Nyamagoud28abde62023-04-01 01:32:32 +000039 "android.system.keystore2-V3-ndk",
Janis Danisevskis670122f2021-01-17 22:20:11 -080040 "libbinder_ndk",
Dan Willemsen8bb84642018-11-16 19:14:19 -080041 "libcrypto",
42 "libcutils",
Dan Willemsen8bb84642018-11-16 19:14:19 -080043 "liblog",
44 "libbase",
45 "libutils",
46 ],
47
48}
49
Janis Danisevskis2437fde2021-03-08 11:30:11 -080050// 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 Willemsen8bb84642018-11-16 19:14:19 -080054cc_library_shared {
55 name: "libkeystore-engine-wifi-hidl",
56
57 srcs: [
58 "android_engine.cpp",
Janis Danisevskis670122f2021-01-17 22:20:11 -080059 "keystore2_engine.cpp",
Dan Willemsen8bb84642018-11-16 19:14:19 -080060 ],
61
62 cflags: [
63 "-fvisibility=hidden",
64 "-Wall",
65 "-Werror",
Dan Willemsen8bb84642018-11-16 19:14:19 -080066 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080067
68 shared_libs: [
Jiyong Park0d61dd62021-07-27 12:20:26 +090069 "android.system.keystore2-V1-ndk",
Janis Danisevskis670122f2021-01-17 22:20:11 -080070 "libbase",
71 "libbinder_ndk",
Dan Willemsen8bb84642018-11-16 19:14:19 -080072 "libcrypto",
73 "liblog",
Dan Willemsen8bb84642018-11-16 19:14:19 -080074 "libcutils",
75 "libutils",
76 ],
77
78 vendor: true,
79}