blob: 1ed15b82a7ad91076f7def44cc355bcdd8a545bb [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: [
Michael Butlerabc86912021-10-28 01:54:26 +000029 "neuralnetworks_use_latest_utils_hal_aidl",
Lev Proleevc185e882020-12-15 19:25:32 +000030 "neuralnetworks_vts_functional_defaults",
31 "use_libaidlvintf_gtest_helper_static",
32 ],
33 srcs: [
34 "BasicTests.cpp",
35 "Callbacks.cpp",
36 "CompilationCachingTests.cpp",
37 "GeneratedTestHarness.cpp",
38 "MemoryDomainTests.cpp",
39 "QualityOfServiceTests.cpp",
40 "TestAssertions.cpp",
41 "TestMain.cpp",
42 "Utils.cpp",
43 "ValidateModel.cpp",
44 "ValidateRequest.cpp",
45 "VtsHalNeuralnetworks.cpp",
46 ],
47 shared_libs: [
48 "libbinder_ndk",
49 "libnativewindow",
50 "libvndksupport",
51 ],
52 static_libs: [
Lev Proleevc185e882020-12-15 19:25:32 +000053 "android.hidl.allocator@1.0",
54 "android.hidl.memory@1.0",
Michael Butlerf03ebd92021-03-25 15:27:38 -070055 "libaidlcommonsupport",
Lev Proleevc185e882020-12-15 19:25:32 +000056 "libgmock",
57 "libhidlmemory",
Michael Butlerabc86912021-10-28 01:54:26 +000058 "libneuralnetworks_common",
Lev Proleevc185e882020-12-15 19:25:32 +000059 "libneuralnetworks_generated_test_harness",
Lev Proleevc185e882020-12-15 19:25:32 +000060 "libsync",
Lev Proleevc185e882020-12-15 19:25:32 +000061 ],
62 whole_static_libs: [
David Gross8e9fbfc2021-12-02 15:39:33 -080063 "neuralnetworks_generated_AIDL_V3_example",
Ian Huaca46f972021-10-15 11:06:31 +010064 "neuralnetworks_generated_AIDL_V2_example",
Lev Proleevc185e882020-12-15 19:25:32 +000065 "neuralnetworks_generated_V1_0_example",
66 "neuralnetworks_generated_V1_1_example",
67 "neuralnetworks_generated_V1_2_example",
68 "neuralnetworks_generated_V1_3_example",
69 ],
70 header_libs: [
71 "libbase_headers",
72 "libneuralnetworks_headers",
73 ],
74 test_suites: [
75 "general-tests",
76 "vts",
77 ],
78}