blob: 991d77a43b6d5b5ac30bd30fc6b961620ca40215 [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",
46 "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070047 ],
48 test_suites: [
49 "general-tests",
50 "vts",
51 ],
52}
53
54cc_test_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000055 name: "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070056 defaults: [
57 "VtsHalTargetTestDefaults",
58 "use_libaidlvintf_gtest_helper_static",
59 ],
60 srcs: [
61 "KeyMintAidlTestBase.cpp",
62 ],
63 export_include_dirs: [
64 ".",
65 ],
66 shared_libs: [
Janis Danisevskis24c04702020-12-16 18:28:39 -080067 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070068 "libcrypto",
Shawn Willden08a7e432020-12-11 13:05:27 +000069 "libkeymint",
70 "libkeymint_support",
Selene Huang31ab4042020-04-29 04:22:39 -070071 ],
72 static_libs: [
Jeongik Cha1674c132021-01-26 22:34:55 +090073 "android.hardware.security.keymint-V1-ndk_platform",
74 "android.hardware.security.secureclock-V1-ndk_platform",
Shawn Willden274bb552020-09-30 22:39:22 -060075 "libcppbor_external",
76 ],
77}
78
79cc_test {
80 name: "VtsHalRemotelyProvisionedComponentTargetTest",
81 defaults: [
82 "VtsHalTargetTestDefaults",
83 "use_libaidlvintf_gtest_helper_static",
84 ],
85 srcs: [
86 "VtsRemotelyProvisionedComponentTests.cpp",
87 ],
88 shared_libs: [
89 "libbinder_ndk",
90 "libcppbor_external",
91 "libcrypto",
92 "libkeymaster_portable",
93 "libpuresoftkeymasterdevice",
94 ],
95 static_libs: [
Jeongik Cha95dbe442021-02-17 12:30:56 +090096 "android.hardware.security.keymint-V1-ndk_platform",
Shawn Willden274bb552020-09-30 22:39:22 -060097 "libcppcose",
98 "libgmock_ndk",
99 "libremote_provisioner",
100 "libkeymint",
101 "libkeymint_remote_prov_support",
102 ],
103 test_suites: [
104 "general-tests",
105 "vts",
Selene Huang31ab4042020-04-29 04:22:39 -0700106 ],
107}