blob: 356cdb09562ab44ce924341b605363e33a1b15f1 [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 ],
Michael Butlerd0d9a7a2022-01-12 11:41:17 -080033 host_supported: true,
Lev Proleevc185e882020-12-15 19:25:32 +000034 srcs: [
35 "BasicTests.cpp",
36 "Callbacks.cpp",
37 "CompilationCachingTests.cpp",
38 "GeneratedTestHarness.cpp",
39 "MemoryDomainTests.cpp",
40 "QualityOfServiceTests.cpp",
41 "TestAssertions.cpp",
42 "TestMain.cpp",
43 "Utils.cpp",
44 "ValidateModel.cpp",
45 "ValidateRequest.cpp",
46 "VtsHalNeuralnetworks.cpp",
47 ],
48 shared_libs: [
49 "libbinder_ndk",
Lev Proleevc185e882020-12-15 19:25:32 +000050 ],
51 static_libs: [
Michael Butlerf03ebd92021-03-25 15:27:38 -070052 "libaidlcommonsupport",
Michael Butlerabc86912021-10-28 01:54:26 +000053 "libneuralnetworks_common",
Lev Proleevc185e882020-12-15 19:25:32 +000054 "libneuralnetworks_generated_test_harness",
Lev Proleevc185e882020-12-15 19:25:32 +000055 ],
56 whole_static_libs: [
David Gross8e9fbfc2021-12-02 15:39:33 -080057 "neuralnetworks_generated_AIDL_V3_example",
Ian Huaca46f972021-10-15 11:06:31 +010058 "neuralnetworks_generated_AIDL_V2_example",
Lev Proleevc185e882020-12-15 19:25:32 +000059 "neuralnetworks_generated_V1_0_example",
60 "neuralnetworks_generated_V1_1_example",
61 "neuralnetworks_generated_V1_2_example",
62 "neuralnetworks_generated_V1_3_example",
63 ],
64 header_libs: [
65 "libbase_headers",
66 "libneuralnetworks_headers",
67 ],
68 test_suites: [
69 "general-tests",
Lev Proleevc185e882020-12-15 19:25:32 +000070 ],
Michael Butlerd0d9a7a2022-01-12 11:41:17 -080071 target: {
72 android: {
73 shared_libs: [
74 "libnativewindow",
75 "libvndksupport",
76 ],
77 static_libs: [
78 "libsync",
79 ],
80 test_suites: [
81 "vts",
82 ],
83 test_config: "AndroidTestDevice.xml",
84 },
85 host: {
86 shared_libs: [
87 "libtextclassifier_hash",
88 ],
89 static_libs: [
90 "neuralnetworks_canonical_sample_driver",
91 "neuralnetworks_utils_hal_adapter_aidl",
92 ],
93 exclude_static_libs: [
94 "VtsHalHidlTestUtils",
95 "libaidlvintf_gtest_helper",
96 ],
97 test_config: "AndroidTestHost.xml",
98 },
99 },
Lev Proleevc185e882020-12-15 19:25:32 +0000100}