blob: 4dc2ed0f8c683a192cf3accad4ee5d297e158ab5 [file] [log] [blame]
Lev Proleevc185e882020-12-15 19:25:32 +00001//
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
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
Lev Proleevc185e882020-12-15 19:25:32 +000026cc_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: [
Jiyong Park27f77fe2021-07-27 12:16:52 +090052 "android.hardware.common-V2-ndk",
53 "android.hardware.graphics.common-V2-ndk",
Michael Butlerc42a9342021-10-26 03:29:13 +000054 "android.hardware.neuralnetworks-V2-ndk",
Lev Proleevc185e882020-12-15 19:25:32 +000055 "android.hidl.allocator@1.0",
56 "android.hidl.memory@1.0",
Michael Butlerf03ebd92021-03-25 15:27:38 -070057 "libaidlcommonsupport",
Lev Proleevc185e882020-12-15 19:25:32 +000058 "libgmock",
59 "libhidlmemory",
60 "libneuralnetworks_generated_test_harness",
Michael Butlerc42a9342021-10-26 03:29:13 +000061 "libneuralnetworks_utils",
Lev Proleevc185e882020-12-15 19:25:32 +000062 "libsync",
Michael Butlerc42a9342021-10-26 03:29:13 +000063 "neuralnetworks_utils_hal_aidl",
Lev Proleevc185e882020-12-15 19:25:32 +000064 ],
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}