blob: efdff2bdfc8ddccba6cce89b5c32906e5629b701 [file] [log] [blame]
Selene Huang31ab4042020-04-29 04:22:39 -07001//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000018 name: "libkeymint_support",
Selene Huang31ab4042020-04-29 04:22:39 -070019 cflags: [
20 "-Wall",
21 "-Wextra",
22 "-Werror",
23 ],
24 srcs: [
25 "attestation_record.cpp",
26 "authorization_set.cpp",
27 "keymint_utils.cpp",
28 "key_param_output.cpp",
29 ],
30 export_include_dirs: [
31 "include",
32 ],
33 shared_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090034 "android.hardware.security.keymint-V1-ndk_platform",
Selene Huang31ab4042020-04-29 04:22:39 -070035 "libbase",
36 "libcrypto",
37 "libutils",
38 ],
39}
Shawn Willden274bb552020-09-30 22:39:22 -060040
41cc_library {
42 name: "libkeymint_remote_prov_support",
43 vendor_available: true,
44 srcs: [
45 "remote_prov_utils.cpp",
46 ],
47 export_include_dirs: [
48 "include",
49 ],
50 shared_libs: [
51 "libcppcose",
52 "libcppbor_external",
53 "libcrypto",
54 ],
55}
56
57cc_library {
58 name: "libcppcose",
59 vendor_available: true,
60 srcs: [
61 "cppcose.cpp",
62 ],
63 export_include_dirs: [
64 "include",
65 ],
66 shared_libs: [
67 "libbinder_ndk",
68 "libcppbor_external",
69 "libcrypto",
70 "liblog",
71 ],
72 static_libs: [
73 // TODO(swillden): Remove keymint NDK
74 "android.hardware.security.keymint-unstable-ndk_platform",
75 ],
76}