blob: ff08ce626e0aef7909616a14165a9c5701c94d0c [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_test {
Shawn Willden08a7e432020-12-11 13:05:27 +000027 name: "VtsAidlKeyMintTargetTest",
Selene Huang31ab4042020-04-29 04:22:39 -070028 defaults: [
29 "VtsHalTargetTestDefaults",
30 "use_libaidlvintf_gtest_helper_static",
31 ],
32 srcs: [
Shawn Willden7c130392020-12-21 09:58:22 -070033 "AttestKeyTest.cpp",
Selene Huang531a72d2021-04-15 01:09:47 -070034 "DeviceUniqueAttestationTest.cpp",
Shawn Willden08a7e432020-12-11 13:05:27 +000035 "KeyMintTest.cpp",
Selene Huang31ab4042020-04-29 04:22:39 -070036 ],
37 shared_libs: [
Janis Danisevskis24c04702020-12-16 18:28:39 -080038 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070039 "libcrypto",
Selene Huang31ab4042020-04-29 04:22:39 -070040 ],
41 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090042 "android.hardware.security.keymint-V1-ndk_platform",
43 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden08a7e432020-12-11 13:05:27 +000044 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070045 "libcppcose_rkp",
Max Bires38dd36e2021-05-23 15:06:23 -070046 "libkeymint",
David Drysdale4dc01072021-04-01 12:17:35 +010047 "libkeymint_remote_prov_support",
Max Bires38dd36e2021-05-23 15:06:23 -070048 "libkeymint_support",
Shawn Willden08a7e432020-12-11 13:05:27 +000049 "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070050 ],
51 test_suites: [
52 "general-tests",
53 "vts",
54 ],
55}
56
57cc_test_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000058 name: "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070059 defaults: [
60 "VtsHalTargetTestDefaults",
61 "use_libaidlvintf_gtest_helper_static",
62 ],
63 srcs: [
64 "KeyMintAidlTestBase.cpp",
65 ],
66 export_include_dirs: [
67 ".",
68 ],
69 shared_libs: [
Janis Danisevskis24c04702020-12-16 18:28:39 -080070 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070071 "libcrypto",
Selene Huang31ab4042020-04-29 04:22:39 -070072 ],
73 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090074 "android.hardware.security.keymint-V1-ndk_platform",
75 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden274bb552020-09-30 22:39:22 -060076 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070077 "libcppcose_rkp",
David Drysdale4dc01072021-04-01 12:17:35 +010078 "libgmock_ndk",
Max Bires38dd36e2021-05-23 15:06:23 -070079 "libkeymint",
David Drysdale4dc01072021-04-01 12:17:35 +010080 "libkeymint_remote_prov_support",
Max Bires38dd36e2021-05-23 15:06:23 -070081 "libkeymint_support",
Shawn Willden274bb552020-09-30 22:39:22 -060082 ],
83}
84
85cc_test {
86 name: "VtsHalRemotelyProvisionedComponentTargetTest",
87 defaults: [
88 "VtsHalTargetTestDefaults",
89 "use_libaidlvintf_gtest_helper_static",
90 ],
91 srcs: [
92 "VtsRemotelyProvisionedComponentTests.cpp",
93 ],
94 shared_libs: [
95 "libbinder_ndk",
Shawn Willden274bb552020-09-30 22:39:22 -060096 "libcrypto",
Shawn Willden274bb552020-09-30 22:39:22 -060097 ],
98 static_libs: [
Jeongik Cha95dbe442021-02-17 12:30:56 +090099 "android.hardware.security.keymint-V1-ndk_platform",
David Drysdalef0d516d2021-03-22 07:51:43 +0000100 "android.hardware.security.secureclock-V1-ndk_platform",
Max Bires9704ff62021-04-07 11:12:01 -0700101 "libcppbor_external",
102 "libcppcose_rkp",
Shawn Willden274bb552020-09-30 22:39:22 -0600103 "libgmock_ndk",
Max Bires9704ff62021-04-07 11:12:01 -0700104 "libkeymaster_portable",
Shawn Willden274bb552020-09-30 22:39:22 -0600105 "libkeymint",
David Drysdalef0d516d2021-03-22 07:51:43 +0000106 "libkeymint_support",
Shawn Willden274bb552020-09-30 22:39:22 -0600107 "libkeymint_remote_prov_support",
David Drysdalef0d516d2021-03-22 07:51:43 +0000108 "libkeymint_vts_test_utils",
Max Bires9704ff62021-04-07 11:12:01 -0700109 "libpuresoftkeymasterdevice",
Shawn Willden274bb552020-09-30 22:39:22 -0600110 ],
111 test_suites: [
112 "general-tests",
113 "vts",
Selene Huang31ab4042020-04-29 04:22:39 -0700114 ],
115}