blob: 20686c142091457f289b79b883a09ff33f47d39b [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 {
Yihan Dong82f94c72024-10-12 09:01:21 +000018 default_team: "trendy_team_android_kernel",
Bob Badourb224b362021-02-12 20:13:01 -080019 // 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
Lev Proleevc185e882020-12-15 19:25:32 +000027cc_test {
28 name: "VtsHalNeuralnetworksTargetTest",
29 defaults: [
Michael Butlerabc86912021-10-28 01:54:26 +000030 "neuralnetworks_use_latest_utils_hal_aidl",
Lev Proleevc185e882020-12-15 19:25:32 +000031 "neuralnetworks_vts_functional_defaults",
32 "use_libaidlvintf_gtest_helper_static",
33 ],
Michael Butlerd0d9a7a2022-01-12 11:41:17 -080034 host_supported: true,
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080035 tidy_timeout_srcs: [
36 "CompilationCachingTests.cpp",
37 "MemoryDomainTests.cpp",
38 ],
Lev Proleevc185e882020-12-15 19:25:32 +000039 srcs: [
40 "BasicTests.cpp",
41 "Callbacks.cpp",
42 "CompilationCachingTests.cpp",
43 "GeneratedTestHarness.cpp",
44 "MemoryDomainTests.cpp",
45 "QualityOfServiceTests.cpp",
46 "TestAssertions.cpp",
47 "TestMain.cpp",
48 "Utils.cpp",
49 "ValidateModel.cpp",
50 "ValidateRequest.cpp",
51 "VtsHalNeuralnetworks.cpp",
52 ],
53 shared_libs: [
54 "libbinder_ndk",
Lev Proleevc185e882020-12-15 19:25:32 +000055 ],
56 static_libs: [
Michael Butlerf03ebd92021-03-25 15:27:38 -070057 "libaidlcommonsupport",
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 ],
61 whole_static_libs: [
David Gross8e9fbfc2021-12-02 15:39:33 -080062 "neuralnetworks_generated_AIDL_V3_example",
Ian Huaca46f972021-10-15 11:06:31 +010063 "neuralnetworks_generated_AIDL_V2_example",
Lev Proleevc185e882020-12-15 19:25:32 +000064 "neuralnetworks_generated_V1_0_example",
65 "neuralnetworks_generated_V1_1_example",
66 "neuralnetworks_generated_V1_2_example",
67 "neuralnetworks_generated_V1_3_example",
68 ],
69 header_libs: [
70 "libbase_headers",
71 "libneuralnetworks_headers",
72 ],
73 test_suites: [
74 "general-tests",
Lev Proleevc185e882020-12-15 19:25:32 +000075 ],
Michael Butlerd0d9a7a2022-01-12 11:41:17 -080076 target: {
77 android: {
78 shared_libs: [
79 "libnativewindow",
80 "libvndksupport",
81 ],
82 static_libs: [
83 "libsync",
84 ],
85 test_suites: [
86 "vts",
87 ],
88 test_config: "AndroidTestDevice.xml",
89 },
90 host: {
91 shared_libs: [
92 "libtextclassifier_hash",
93 ],
94 static_libs: [
95 "neuralnetworks_canonical_sample_driver",
96 "neuralnetworks_utils_hal_adapter_aidl",
97 ],
98 exclude_static_libs: [
99 "VtsHalHidlTestUtils",
100 "libaidlvintf_gtest_helper",
101 ],
102 test_config: "AndroidTestHost.xml",
103 },
104 },
Lev Proleevc185e882020-12-15 19:25:32 +0000105}