2020-04-29 04:22:39 -07:00
|
|
|
//
|
|
|
|
|
// Copyright (C) 2020 The Android Open Source Project
|
|
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
//
|
|
|
|
|
|
2021-02-12 20:13:01 -08:00
|
|
|
package {
|
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
|
|
|
// to get the below license kinds:
|
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-29 04:22:39 -07:00
|
|
|
cc_library {
|
2020-12-11 13:05:27 +00:00
|
|
|
name: "libkeymint_support",
|
2021-10-26 22:51:42 +08:00
|
|
|
vendor_available: true,
|
2020-04-29 04:22:39 -07:00
|
|
|
cflags: [
|
|
|
|
|
"-Wall",
|
|
|
|
|
"-Wextra",
|
|
|
|
|
"-Werror",
|
|
|
|
|
],
|
|
|
|
|
srcs: [
|
|
|
|
|
"attestation_record.cpp",
|
|
|
|
|
"authorization_set.cpp",
|
|
|
|
|
"keymint_utils.cpp",
|
|
|
|
|
"key_param_output.cpp",
|
|
|
|
|
],
|
|
|
|
|
export_include_dirs: [
|
|
|
|
|
"include",
|
|
|
|
|
],
|
2021-11-22 14:32:31 +00:00
|
|
|
defaults: [
|
|
|
|
|
"keymint_use_latest_hal_aidl_ndk_shared",
|
|
|
|
|
],
|
2020-04-29 04:22:39 -07:00
|
|
|
shared_libs: [
|
|
|
|
|
"libbase",
|
|
|
|
|
"libcrypto",
|
|
|
|
|
"libutils",
|
2021-10-26 22:51:42 +08:00
|
|
|
"libhardware",
|
2020-04-29 04:22:39 -07:00
|
|
|
],
|
|
|
|
|
}
|
2020-09-30 22:39:22 -06:00
|
|
|
|
|
|
|
|
cc_library {
|
|
|
|
|
name: "libkeymint_remote_prov_support",
|
|
|
|
|
vendor_available: true,
|
|
|
|
|
srcs: [
|
|
|
|
|
"remote_prov_utils.cpp",
|
|
|
|
|
],
|
|
|
|
|
export_include_dirs: [
|
|
|
|
|
"include",
|
|
|
|
|
],
|
2022-02-02 23:10:55 +00:00
|
|
|
defaults: [
|
|
|
|
|
"keymint_use_latest_hal_aidl_ndk_shared",
|
|
|
|
|
],
|
2022-11-04 17:39:05 +00:00
|
|
|
static_libs: [
|
|
|
|
|
"android.hardware.security.rkp-V3-ndk",
|
|
|
|
|
],
|
2022-12-22 12:01:06 +00:00
|
|
|
whole_static_libs: [
|
2023-01-15 21:27:21 +00:00
|
|
|
"libhwtrust_cxx",
|
2022-12-22 12:01:06 +00:00
|
|
|
],
|
2020-09-30 22:39:22 -06:00
|
|
|
shared_libs: [
|
2021-06-25 14:20:15 -07:00
|
|
|
"libbase",
|
2022-09-13 12:00:30 -07:00
|
|
|
"libbinder_ndk",
|
2024-03-28 20:42:34 -06:00
|
|
|
"libcppbor",
|
2021-04-07 11:12:01 -07:00
|
|
|
"libcppcose_rkp",
|
2020-09-30 22:39:22 -06:00
|
|
|
"libcrypto",
|
2022-02-02 23:10:55 +00:00
|
|
|
"libkeymaster_portable",
|
2021-06-25 14:20:15 -07:00
|
|
|
"libjsoncpp",
|
2020-09-30 22:39:22 -06:00
|
|
|
],
|
|
|
|
|
}
|
2021-06-22 16:47:48 -07:00
|
|
|
|
|
|
|
|
cc_test {
|
|
|
|
|
name: "libkeymint_remote_prov_support_test",
|
|
|
|
|
srcs: ["remote_prov_utils_test.cpp"],
|
|
|
|
|
static_libs: [
|
2022-11-08 15:51:01 -08:00
|
|
|
"android.hardware.security.rkp-V3-ndk",
|
2021-06-22 16:47:48 -07:00
|
|
|
"libgmock",
|
|
|
|
|
"libgtest_main",
|
2023-01-12 22:35:40 +00:00
|
|
|
"libkeymint_remote_prov_support",
|
2021-06-22 16:47:48 -07:00
|
|
|
],
|
2022-02-02 23:10:55 +00:00
|
|
|
defaults: [
|
|
|
|
|
"keymint_use_latest_hal_aidl_ndk_shared",
|
|
|
|
|
],
|
2021-06-22 16:47:48 -07:00
|
|
|
shared_libs: [
|
2021-06-25 14:20:15 -07:00
|
|
|
"libbase",
|
2024-03-28 20:42:34 -06:00
|
|
|
"libcppbor",
|
2021-06-22 16:47:48 -07:00
|
|
|
"libcppcose_rkp",
|
|
|
|
|
"libcrypto",
|
2021-06-25 14:20:15 -07:00
|
|
|
"libjsoncpp",
|
2021-06-22 16:47:48 -07:00
|
|
|
"libkeymaster_portable",
|
|
|
|
|
],
|
|
|
|
|
}
|