blob: 9980765fa6e747e39497cb2e27ac5ada8ac521f2 [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
Dan Willemsen8bb84642018-11-16 19:14:19 -080024cc_library_shared {
25 name: "libkeystore-engine",
26
27 srcs: [
28 "android_engine.cpp",
29 "keystore_backend_binder.cpp",
Janis Danisevskis670122f2021-01-17 22:20:11 -080030 "keystore2_engine.cpp",
Dan Willemsen8bb84642018-11-16 19:14:19 -080031 ],
32
33 cflags: [
34 "-fvisibility=hidden",
35 "-Wall",
36 "-Werror",
37 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080038
39 shared_libs: [
Janis Danisevskis670122f2021-01-17 22:20:11 -080040 "android.system.keystore2-V1-ndk_platform",
Dan Willemsen8bb84642018-11-16 19:14:19 -080041 "libbinder",
Janis Danisevskis670122f2021-01-17 22:20:11 -080042 "libbinder_ndk",
Dan Willemsen8bb84642018-11-16 19:14:19 -080043 "libcrypto",
44 "libcutils",
45 "libhidlbase",
46 "libkeystore_aidl",
47 "libkeystore_binder",
48 "libkeystore_parcelables",
49 "liblog",
50 "libbase",
51 "libutils",
52 ],
53
54}
55
56// This builds a variant of libkeystore-engine that uses a HIDL HAL
57// owned by the WiFi user to perform signing operations.
58cc_library_shared {
59 name: "libkeystore-engine-wifi-hidl",
60
61 srcs: [
62 "android_engine.cpp",
63 "keystore_backend_hidl.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",
71 "-DBACKEND_WIFI_HIDL",
72 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080073
74 shared_libs: [
Janis Danisevskis670122f2021-01-17 22:20:11 -080075 "android.system.keystore2-V1-ndk_platform",
Dan Willemsen8bb84642018-11-16 19:14:19 -080076 "android.system.wifi.keystore@1.0",
Janis Danisevskis670122f2021-01-17 22:20:11 -080077 "libbase",
78 "libbinder_ndk",
Dan Willemsen8bb84642018-11-16 19:14:19 -080079 "libcrypto",
80 "liblog",
81 "libhidlbase",
Dan Willemsen8bb84642018-11-16 19:14:19 -080082 "libcutils",
83 "libutils",
84 ],
85
86 vendor: true,
87}