xref: /aosp_15_r20/hardware/interfaces/security/keymint/aidl/vts/functional/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1//
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
17package {
18    default_team: "trendy_team_android_hardware_backed_security",
19    // 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
27cc_defaults {
28    name: "keymint_vts_defaults",
29    defaults: [
30        "keymint_use_latest_hal_aidl_ndk_static",
31        "use_libaidlvintf_gtest_helper_static",
32        "VtsHalTargetTestDefaults",
33    ],
34    shared_libs: [
35        "libbinder",
36        "libbinder_ndk",
37        "libcrypto",
38        "libbase",
39        "libgatekeeper",
40        "packagemanager_aidl-cpp",
41    ],
42    static_libs: [
43        "[email protected]",
44        "android.hardware.gatekeeper-V1-ndk",
45        "android.hardware.security.rkp-V3-ndk",
46        "android.hardware.security.secureclock-V1-ndk",
47        "libavb_user",
48        "libavb",
49        "libcppbor",
50        "libcppcose_rkp",
51        "libfs_mgr",
52        "libjsoncpp",
53        "libkeymint",
54        "libkeymint_remote_prov_support",
55        "libkeymint_support",
56    ],
57}
58
59cc_test {
60    name: "VtsAidlKeyMintTargetTest",
61    defaults: [
62        "keymint_vts_defaults",
63    ],
64    tidy_timeout_srcs: [
65        "KeyMintTest.cpp",
66    ],
67    srcs: [
68        "AttestKeyTest.cpp",
69        "AuthTest.cpp",
70        "BootloaderStateTest.cpp",
71        "DeviceUniqueAttestationTest.cpp",
72        "KeyBlobUpgradeTest.cpp",
73        "KeyMintTest.cpp",
74        "SecureElementProvisioningTest.cpp",
75    ],
76    static_libs: [
77        "libkeymint_vts_test_utils",
78    ],
79    test_suites: [
80        "general-tests",
81        "vts",
82    ],
83}
84
85cc_test_library {
86    name: "libkeymint_vts_test_utils",
87    defaults: [
88        "keymint_vts_defaults",
89    ],
90    tidy_timeout_srcs: [
91        "KeyMintAidlTestBase.cpp",
92    ],
93    srcs: [
94        "KeyMintAidlTestBase.cpp",
95    ],
96    export_include_dirs: [
97        ".",
98    ],
99    export_static_lib_headers: [
100        "libkeymint_support",
101    ],
102    static_libs: [
103        "libgmock_ndk",
104    ],
105}
106