blob: 60f59400e3df1ccf7dd6d9bd6e301c4356122e8b [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
15cc_library_shared {
16 name: "libkeystore-engine",
17
18 srcs: [
19 "android_engine.cpp",
20 "keystore_backend_binder.cpp",
21 ],
22
23 cflags: [
24 "-fvisibility=hidden",
25 "-Wall",
26 "-Werror",
27 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080028
29 shared_libs: [
30 "libbinder",
31 "libcrypto",
32 "libcutils",
33 "libhidlbase",
34 "libkeystore_aidl",
35 "libkeystore_binder",
36 "libkeystore_parcelables",
37 "liblog",
38 "libbase",
39 "libutils",
40 ],
41
42}
43
44// This builds a variant of libkeystore-engine that uses a HIDL HAL
45// owned by the WiFi user to perform signing operations.
46cc_library_shared {
47 name: "libkeystore-engine-wifi-hidl",
48
49 srcs: [
50 "android_engine.cpp",
51 "keystore_backend_hidl.cpp",
52 ],
53
54 cflags: [
55 "-fvisibility=hidden",
56 "-Wall",
57 "-Werror",
58 "-DBACKEND_WIFI_HIDL",
59 ],
Dan Willemsen8bb84642018-11-16 19:14:19 -080060
61 shared_libs: [
62 "android.system.wifi.keystore@1.0",
63 "libcrypto",
64 "liblog",
65 "libhidlbase",
66 "libhidltransport",
67 "libcutils",
68 "libutils",
69 ],
70
71 vendor: true,
72}