blob: d969dfe03a502d531c93e8af528ce972c8153fe1 [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",
Shawn Willden08a7e432020-12-11 13:05:27 +000034 "KeyMintTest.cpp",
Selene Huang31ab4042020-04-29 04:22:39 -070035 ],
36 shared_libs: [
Janis Danisevskis24c04702020-12-16 18:28:39 -080037 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070038 "libcrypto",
Shawn Willden08a7e432020-12-11 13:05:27 +000039 "libkeymint",
40 "libkeymint_support",
Selene Huang31ab4042020-04-29 04:22:39 -070041 ],
42 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090043 "android.hardware.security.keymint-V1-ndk_platform",
44 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden08a7e432020-12-11 13:05:27 +000045 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070046 "libcppcose_rkp",
David Drysdale4dc01072021-04-01 12:17:35 +010047 "libkeymint_remote_prov_support",
Shawn Willden08a7e432020-12-11 13:05:27 +000048 "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070049 ],
50 test_suites: [
51 "general-tests",
52 "vts",
53 ],
54}
55
56cc_test_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000057 name: "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070058 defaults: [
59 "VtsHalTargetTestDefaults",
60 "use_libaidlvintf_gtest_helper_static",
61 ],
62 srcs: [
63 "KeyMintAidlTestBase.cpp",
64 ],
65 export_include_dirs: [
66 ".",
67 ],
68 shared_libs: [
Janis Danisevskis24c04702020-12-16 18:28:39 -080069 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070070 "libcrypto",
Shawn Willden08a7e432020-12-11 13:05:27 +000071 "libkeymint",
72 "libkeymint_support",
Selene Huang31ab4042020-04-29 04:22:39 -070073 ],
74 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090075 "android.hardware.security.keymint-V1-ndk_platform",
76 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden274bb552020-09-30 22:39:22 -060077 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070078 "libcppcose_rkp",
David Drysdale4dc01072021-04-01 12:17:35 +010079 "libgmock_ndk",
80 "libkeymint_remote_prov_support",
Shawn Willden274bb552020-09-30 22:39:22 -060081 ],
82}
83
84cc_test {
85 name: "VtsHalRemotelyProvisionedComponentTargetTest",
86 defaults: [
87 "VtsHalTargetTestDefaults",
88 "use_libaidlvintf_gtest_helper_static",
89 ],
90 srcs: [
91 "VtsRemotelyProvisionedComponentTests.cpp",
92 ],
93 shared_libs: [
94 "libbinder_ndk",
Shawn Willden274bb552020-09-30 22:39:22 -060095 "libcrypto",
Shawn Willden274bb552020-09-30 22:39:22 -060096 ],
97 static_libs: [
Jeongik Cha95dbe442021-02-17 12:30:56 +090098 "android.hardware.security.keymint-V1-ndk_platform",
David Drysdalef0d516d2021-03-22 07:51:43 +000099 "android.hardware.security.secureclock-V1-ndk_platform",
Max Bires9704ff62021-04-07 11:12:01 -0700100 "libcppbor_external",
101 "libcppcose_rkp",
Shawn Willden274bb552020-09-30 22:39:22 -0600102 "libgmock_ndk",
Max Bires9704ff62021-04-07 11:12:01 -0700103 "libkeymaster_portable",
Shawn Willden274bb552020-09-30 22:39:22 -0600104 "libkeymint",
David Drysdalef0d516d2021-03-22 07:51:43 +0000105 "libkeymint_support",
Shawn Willden274bb552020-09-30 22:39:22 -0600106 "libkeymint_remote_prov_support",
David Drysdalef0d516d2021-03-22 07:51:43 +0000107 "libkeymint_vts_test_utils",
Max Bires9704ff62021-04-07 11:12:01 -0700108 "libpuresoftkeymasterdevice",
David Drysdalef0d516d2021-03-22 07:51:43 +0000109 "libremote_provisioner",
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}