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    // 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
26cc_test {
27    name: "VtsHalNeuralnetworksTargetTest",
28    defaults: [
29        "neuralnetworks_vts_functional_defaults",
30        "use_libaidlvintf_gtest_helper_static",
31    ],
32    srcs: [
33        "BasicTests.cpp",
34        "Callbacks.cpp",
35        "CompilationCachingTests.cpp",
36        "GeneratedTestHarness.cpp",
37        "MemoryDomainTests.cpp",
38        "QualityOfServiceTests.cpp",
39        "TestAssertions.cpp",
40        "TestMain.cpp",
41        "Utils.cpp",
42        "ValidateModel.cpp",
43        "ValidateRequest.cpp",
44        "VtsHalNeuralnetworks.cpp",
45    ],
46    shared_libs: [
47        "libbinder_ndk",
48        "libnativewindow",
49        "libvndksupport",
50    ],
51    static_libs: [
52        "android.hardware.common-V2-ndk_platform",
53        "android.hardware.graphics.common-V2-ndk_platform",
54        "android.hardware.neuralnetworks-V1-ndk_platform",
55        "android.hidl.allocator@1.0",
56        "android.hidl.memory@1.0",
57        "libaidlcommonsupport",
58        "libgmock",
59        "libhidlmemory",
60        "libneuralnetworks_generated_test_harness",
61        "libneuralnetworks_utils",
62        "libsync",
63        "neuralnetworks_utils_hal_aidl",
64    ],
65    whole_static_libs: [
66        "neuralnetworks_generated_V1_0_example",
67        "neuralnetworks_generated_V1_1_example",
68        "neuralnetworks_generated_V1_2_example",
69        "neuralnetworks_generated_V1_3_example",
70    ],
71    header_libs: [
72        "libbase_headers",
73        "libneuralnetworks_headers",
74    ],
75    test_suites: [
76        "general-tests",
77        "vts",
78    ],
79}
80