blob: bf2ab02cb23200ab6d58082fa5a7852d58abc9f0 [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 ],
David Drysdale49255342021-11-22 14:32:31 +000043 defaults: [
44 "keymint_use_latest_hal_aidl_ndk_shared",
45 ],
Selene Huang31ab4042020-04-29 04:22:39 -070046 shared_libs: [
Selene Huang31ab4042020-04-29 04:22:39 -070047 "libbase",
48 "libcrypto",
49 "libutils",
Tommy Chiuabcf89d2021-10-26 22:51:42 +080050 "libhardware",
Selene Huang31ab4042020-04-29 04:22:39 -070051 ],
52}
Shawn Willden274bb552020-09-30 22:39:22 -060053
54cc_library {
55 name: "libkeymint_remote_prov_support",
56 vendor_available: true,
57 srcs: [
58 "remote_prov_utils.cpp",
59 ],
60 export_include_dirs: [
61 "include",
62 ],
subrahmanyamanfb213d62022-02-02 23:10:55 +000063 defaults: [
64 "keymint_use_latest_hal_aidl_ndk_shared",
65 ],
Shawn Willden274bb552020-09-30 22:39:22 -060066 shared_libs: [
Seth Mooref4c8ff92021-06-25 14:20:15 -070067 "libbase",
Shawn Willden274bb552020-09-30 22:39:22 -060068 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070069 "libcppcose_rkp",
Shawn Willden274bb552020-09-30 22:39:22 -060070 "libcrypto",
subrahmanyamanfb213d62022-02-02 23:10:55 +000071 "libkeymaster_portable",
Seth Mooref4c8ff92021-06-25 14:20:15 -070072 "libjsoncpp",
Shawn Willden274bb552020-09-30 22:39:22 -060073 ],
74}
Seth Moore42a2f6b2021-06-22 16:47:48 -070075
76cc_test {
77 name: "libkeymint_remote_prov_support_test",
78 srcs: ["remote_prov_utils_test.cpp"],
79 static_libs: [
80 "libgmock",
81 "libgtest_main",
82 ],
subrahmanyamanfb213d62022-02-02 23:10:55 +000083 defaults: [
84 "keymint_use_latest_hal_aidl_ndk_shared",
85 ],
Seth Moore42a2f6b2021-06-22 16:47:48 -070086 shared_libs: [
Seth Mooref4c8ff92021-06-25 14:20:15 -070087 "libbase",
Seth Moore42a2f6b2021-06-22 16:47:48 -070088 "libcppbor_external",
89 "libcppcose_rkp",
90 "libcrypto",
Seth Mooref4c8ff92021-06-25 14:20:15 -070091 "libjsoncpp",
Seth Moore42a2f6b2021-06-22 16:47:48 -070092 "libkeymaster_portable",
93 "libkeymint_remote_prov_support",
94 ],
95}