blob: da3427af8c7c96a8c49cf555e2745fca37b264f9 [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 {
Yihan Dong8c111de2024-10-12 08:58:30 +000018 default_team: "trendy_team_android_hardware_backed_security",
Bob Badourb224b362021-02-12 20:13:01 -080019 // See: http://go/android-license-faq
20 // A large-scale-change added 'default_applicable_licenses' to import
21 // all of the 'license_kinds' from "hardware_interfaces_license"
22 // to get the below license kinds:
23 // SPDX-license-identifier-Apache-2.0
24 default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
Seth Mooref4c8ff92021-06-25 14:20:15 -070027cc_defaults {
28 name: "keymint_vts_defaults",
Selene Huang31ab4042020-04-29 04:22:39 -070029 defaults: [
David Drysdale49255342021-11-22 14:32:31 +000030 "keymint_use_latest_hal_aidl_ndk_static",
Selene Huang31ab4042020-04-29 04:22:39 -070031 "use_libaidlvintf_gtest_helper_static",
Seth Mooref4c8ff92021-06-25 14:20:15 -070032 "VtsHalTargetTestDefaults",
Selene Huang31ab4042020-04-29 04:22:39 -070033 ],
34 shared_libs: [
David Drysdale3d2ba0a2023-01-11 13:27:26 +000035 "libbinder",
Janis Danisevskis24c04702020-12-16 18:28:39 -080036 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070037 "libcrypto",
Rajesh Nyamagoudeb644cf2022-12-15 03:50:52 +000038 "libbase",
David Drysdale28fa9312023-02-01 14:53:01 +000039 "libgatekeeper",
Catherine Vlasovf16bd492024-12-13 18:04:06 +000040 "libvendorsupport",
David Drysdale3d2ba0a2023-01-11 13:27:26 +000041 "packagemanager_aidl-cpp",
Selene Huang31ab4042020-04-29 04:22:39 -070042 ],
43 static_libs: [
David Drysdale28fa9312023-02-01 14:53:01 +000044 "android.hardware.gatekeeper@1.0",
45 "android.hardware.gatekeeper-V1-ndk",
Seth Moore41e97f02022-11-04 17:39:05 +000046 "android.hardware.security.rkp-V3-ndk",
Jiyong Park27f77fe2021-07-27 12:16:52 +090047 "android.hardware.security.secureclock-V1-ndk",
Tri Vo520a95b2023-05-02 14:36:31 -070048 "libavb_user",
49 "libavb",
Shawn Willden98125922024-03-28 20:42:34 -060050 "libcppbor",
Max Bires9704ff62021-04-07 11:12:01 -070051 "libcppcose_rkp",
Tri Vo520a95b2023-05-02 14:36:31 -070052 "libfs_mgr",
Seth Mooref4c8ff92021-06-25 14:20:15 -070053 "libjsoncpp",
Max Birese857afb2021-05-23 15:06:23 -070054 "libkeymint",
David Drysdale4dc01072021-04-01 12:17:35 +010055 "libkeymint_remote_prov_support",
Max Birese857afb2021-05-23 15:06:23 -070056 "libkeymint_support",
Seth Mooref4c8ff92021-06-25 14:20:15 -070057 ],
58}
59
60cc_test {
61 name: "VtsAidlKeyMintTargetTest",
62 defaults: [
63 "keymint_vts_defaults",
64 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080065 tidy_timeout_srcs: [
66 "KeyMintTest.cpp",
67 ],
Seth Mooref4c8ff92021-06-25 14:20:15 -070068 srcs: [
69 "AttestKeyTest.cpp",
David Drysdale28fa9312023-02-01 14:53:01 +000070 "AuthTest.cpp",
Tri Vobf75a402023-03-29 16:45:17 -070071 "BootloaderStateTest.cpp",
Seth Mooref4c8ff92021-06-25 14:20:15 -070072 "DeviceUniqueAttestationTest.cpp",
David Drysdale9f5c0c52022-11-03 15:10:16 +000073 "KeyBlobUpgradeTest.cpp",
Seth Mooref4c8ff92021-06-25 14:20:15 -070074 "KeyMintTest.cpp",
Shawn Willden0cc617c2022-02-11 12:51:53 -070075 "SecureElementProvisioningTest.cpp",
Seth Mooref4c8ff92021-06-25 14:20:15 -070076 ],
77 static_libs: [
Shawn Willden08a7e432020-12-11 13:05:27 +000078 "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070079 ],
80 test_suites: [
81 "general-tests",
82 "vts",
83 ],
84}
85
86cc_test_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000087 name: "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070088 defaults: [
Seth Mooref4c8ff92021-06-25 14:20:15 -070089 "keymint_vts_defaults",
Selene Huang31ab4042020-04-29 04:22:39 -070090 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080091 tidy_timeout_srcs: [
92 "KeyMintAidlTestBase.cpp",
93 ],
Selene Huang31ab4042020-04-29 04:22:39 -070094 srcs: [
95 "KeyMintAidlTestBase.cpp",
96 ],
97 export_include_dirs: [
98 ".",
99 ],
Seth Moore1bf823c2022-01-25 23:04:37 +0000100 export_static_lib_headers: [
101 "libkeymint_support",
102 ],
Selene Huang31ab4042020-04-29 04:22:39 -0700103 static_libs: [
David Drysdale4dc01072021-04-01 12:17:35 +0100104 "libgmock_ndk",
Shawn Willden274bb552020-09-30 22:39:22 -0600105 ],
106}