blob: 271e36ce78d6fd18648540d024345bb19737e618 [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
Bob Badourb224b362021-02-12 20:13:01 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
Selene Huang31ab4042020-04-29 04:22:39 -070026cc_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000027 name: "libkeymint_support",
Tommy Chiuabcf89d2021-10-26 22:51:42 +080028 vendor_available: true,
Selene Huang31ab4042020-04-29 04:22:39 -070029 cflags: [
30 "-Wall",
31 "-Wextra",
32 "-Werror",
33 ],
34 srcs: [
35 "attestation_record.cpp",
36 "authorization_set.cpp",
37 "keymint_utils.cpp",
38 "key_param_output.cpp",
39 ],
40 export_include_dirs: [
41 "include",
42 ],
Karuna Wadherac42a2a62024-10-23 04:29:37 +000043 header_libs: [
44 "libhardware_headers",
45 ],
David Drysdale49255342021-11-22 14:32:31 +000046 defaults: [
47 "keymint_use_latest_hal_aidl_ndk_shared",
48 ],
Selene Huang31ab4042020-04-29 04:22:39 -070049 shared_libs: [
Selene Huang31ab4042020-04-29 04:22:39 -070050 "libbase",
51 "libcrypto",
52 "libutils",
Tommy Chiuabcf89d2021-10-26 22:51:42 +080053 "libhardware",
Selene Huang31ab4042020-04-29 04:22:39 -070054 ],
55}
Shawn Willden274bb552020-09-30 22:39:22 -060056
57cc_library {
Karuna Wadherac42a2a62024-10-23 04:29:37 +000058 name: "libkeymint_support_V3",
59 vendor_available: true,
60 cflags: [
61 "-Wall",
62 "-Wextra",
63 "-Werror",
64 ],
65 srcs: [
66 "attestation_record.cpp",
67 "authorization_set.cpp",
68 "keymint_utils.cpp",
69 "key_param_output.cpp",
70 ],
71 export_include_dirs: [
72 "include",
73 ],
74 header_libs: [
75 "libhardware_headers",
76 ],
77 shared_libs: [
78 "android.hardware.security.keymint-V3-ndk",
79 "libbase",
80 "libcrypto",
81 "libutils",
82 "libhardware",
83 ],
84}
85
86cc_library {
Shawn Willden274bb552020-09-30 22:39:22 -060087 name: "libkeymint_remote_prov_support",
88 vendor_available: true,
89 srcs: [
90 "remote_prov_utils.cpp",
91 ],
92 export_include_dirs: [
93 "include",
94 ],
subrahmanyamanfb213d62022-02-02 23:10:55 +000095 defaults: [
96 "keymint_use_latest_hal_aidl_ndk_shared",
97 ],
Seth Moore41e97f02022-11-04 17:39:05 +000098 static_libs: [
99 "android.hardware.security.rkp-V3-ndk",
100 ],
Andrew Scull9a8c9452022-12-22 12:01:06 +0000101 whole_static_libs: [
Andrew Scullc54f4332023-01-15 21:27:21 +0000102 "libhwtrust_cxx",
Andrew Scull9a8c9452022-12-22 12:01:06 +0000103 ],
Shawn Willden274bb552020-09-30 22:39:22 -0600104 shared_libs: [
Seth Mooref4c8ff92021-06-25 14:20:15 -0700105 "libbase",
Seth Mooref1f62152022-09-13 12:00:30 -0700106 "libbinder_ndk",
Shawn Willden98125922024-03-28 20:42:34 -0600107 "libcppbor",
Max Bires9704ff62021-04-07 11:12:01 -0700108 "libcppcose_rkp",
Shawn Willden274bb552020-09-30 22:39:22 -0600109 "libcrypto",
subrahmanyamanfb213d62022-02-02 23:10:55 +0000110 "libkeymaster_portable",
Seth Mooref4c8ff92021-06-25 14:20:15 -0700111 "libjsoncpp",
Shawn Willden274bb552020-09-30 22:39:22 -0600112 ],
113}
Seth Moore42a2f6b2021-06-22 16:47:48 -0700114
115cc_test {
116 name: "libkeymint_remote_prov_support_test",
Sean Thomas2d2385b2024-11-07 23:56:03 +0000117 cpp_std: "c++20",
Seth Moore42a2f6b2021-06-22 16:47:48 -0700118 srcs: ["remote_prov_utils_test.cpp"],
119 static_libs: [
Seth Moore5937f072022-11-08 15:51:01 -0800120 "android.hardware.security.rkp-V3-ndk",
Seth Moore42a2f6b2021-06-22 16:47:48 -0700121 "libgmock",
122 "libgtest_main",
Daniel Angell1f5ab0d2023-01-12 22:35:40 +0000123 "libkeymint_remote_prov_support",
Seth Moore42a2f6b2021-06-22 16:47:48 -0700124 ],
subrahmanyamanfb213d62022-02-02 23:10:55 +0000125 defaults: [
126 "keymint_use_latest_hal_aidl_ndk_shared",
127 ],
Seth Moore42a2f6b2021-06-22 16:47:48 -0700128 shared_libs: [
Seth Mooref4c8ff92021-06-25 14:20:15 -0700129 "libbase",
Sean Thomase2307102024-10-16 11:27:36 +0000130 "libbinder_ndk",
Shawn Willden98125922024-03-28 20:42:34 -0600131 "libcppbor",
Seth Moore42a2f6b2021-06-22 16:47:48 -0700132 "libcppcose_rkp",
133 "libcrypto",
Seth Mooref4c8ff92021-06-25 14:20:15 -0700134 "libjsoncpp",
Seth Moore42a2f6b2021-06-22 16:47:48 -0700135 "libkeymaster_portable",
Seth Moore42a2f6b2021-06-22 16:47:48 -0700136 ],
137}