xref: /aosp_15_r20/hardware/interfaces/nfc/aidl/vts/functional/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1//
2// Copyright (C) 2021 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_fwk_nfc",
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_test {
28    name: "VtsAidlHalNfcTargetTest",
29    defaults: [
30        "VtsHalTargetTestDefaults",
31        "use_libaidlvintf_gtest_helper_static",
32    ],
33    srcs: [
34        "VtsAidlHalNfcTargetTest.cpp",
35    ],
36    shared_libs: [
37        "libbinder",
38        "libbinder_ndk",
39    ],
40    static_libs: [
41        "android.hardware.nfc-V2-ndk",
42    ],
43    test_suites: [
44        "general-tests",
45        "vts",
46    ],
47}
48
49cc_test {
50    name: "VtsNfcBehaviorChangesTest",
51    defaults: [
52        "aconfig_lib_cc_shared_link.defaults",
53        "VtsHalTargetTestDefaults",
54        "use_libaidlvintf_gtest_helper_static",
55    ],
56    srcs: [
57        "VtsNfcBehaviorChangesTest.cpp",
58        "CondVar.cpp",
59    ],
60    include_dirs: [
61        "system/nfc/src/gki/common",
62        "system/nfc/src/gki/ulinux",
63        "system/nfc/src/include",
64        "system/nfc/src/nfa/include",
65        "system/nfc/src/nfc/include",
66        "system/nfc/utils/include",
67    ],
68    shared_libs: [
69        "liblog",
70        "libbinder",
71        "libbinder_ndk",
72        "libnativehelper",
73        "libstatssocket",
74    ],
75    static_libs: [
76        "android.hardware.nfc-V2-ndk",
77        "[email protected]",
78        "[email protected]",
79        "[email protected]",
80        "android_nfc_flags_aconfig_c_lib",
81        "libnfc-nci",
82        "libnfc-nci_flags",
83        "libnfcutils",
84        "libstatslog_nfc",
85        "server_configurable_flags",
86    ],
87    require_root: true,
88    test_options: {
89        vsr_min_shipping_api_level: 202404, // 2024Q2
90    },
91    test_suites: [
92        "vts",
93    ],
94}
95