blob: 0a3c5778b9c6542349507e07243c22bbec1cc196 [file] [log] [blame]
Slava Shklyaevfeb87a92018-09-12 14:52:02 +01001//
2// Copyright (C) 2018 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 Proleev26d1bc82019-08-30 11:57:18 +010027cc_library_static {
David Gross6174f002018-05-14 12:23:04 -070028 name: "VtsHalNeuralNetworksV1_2_utils",
David Gross0db1b542019-12-20 14:22:15 -080029 defaults: ["neuralnetworks_vts_functional_defaults"],
Lev Proleev26d1bc82019-08-30 11:57:18 +010030 export_include_dirs: ["include"],
31 srcs: [
32 "Callbacks.cpp",
David Gross6174f002018-05-14 12:23:04 -070033 "Utils.cpp",
Lev Proleev26d1bc82019-08-30 11:57:18 +010034 ],
35 static_libs: [
36 "android.hardware.neuralnetworks@1.0",
37 "android.hardware.neuralnetworks@1.1",
38 "android.hardware.neuralnetworks@1.2",
39 ],
40 header_libs: [
41 "libbase_headers",
Michael Butlerd09c0ee2020-03-12 15:12:23 -070042 ],
Lev Proleev26d1bc82019-08-30 11:57:18 +010043}
44
Michael Butler07633282019-08-29 11:08:25 -070045cc_test {
46 name: "VtsHalNeuralnetworksV1_2TargetTest",
David Gross0db1b542019-12-20 14:22:15 -080047 defaults: ["neuralnetworks_vts_functional_defaults"],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080048 tidy_timeout_srcs: [
49 "CompilationCachingTests.cpp",
50 ],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010051 srcs: [
Michael Butler07633282019-08-29 11:08:25 -070052 "BasicTests.cpp",
Michael Butler07633282019-08-29 11:08:25 -070053 "CompilationCachingTests.cpp",
54 "GeneratedTestHarness.cpp",
Xusong Wangee80b022019-08-22 14:58:16 -070055 "TestAssertions.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010056 "TestMain.cpp",
Michael Butlerd09c0ee2020-03-12 15:12:23 -070057 "ValidateBurst.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010058 "ValidateModel.cpp",
59 "ValidateRequest.cpp",
60 "VtsHalNeuralnetworks.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010061 ],
62 local_include_dirs: ["include"],
63 shared_libs: [
64 "libfmq",
65 "libnativewindow",
66 ],
67 static_libs: [
Michael Butlerd09c0ee2020-03-12 15:12:23 -070068 "VtsHalNeuralNetworksV1_0_utils",
David Gross6174f002018-05-14 12:23:04 -070069 "VtsHalNeuralNetworksV1_2_utils",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010070 "android.hardware.neuralnetworks@1.0",
71 "android.hardware.neuralnetworks@1.1",
72 "android.hardware.neuralnetworks@1.2",
73 "android.hidl.allocator@1.0",
74 "android.hidl.memory@1.0",
75 "libgmock",
76 "libhidlmemory",
Xusong Wangead950d2019-08-09 16:45:24 -070077 "libneuralnetworks_generated_test_harness",
Michael Butlerc3310672021-11-01 18:19:57 -070078 "libneuralnetworks_common",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010079 ],
Michael Butler07633282019-08-29 11:08:25 -070080 whole_static_libs: [
81 "neuralnetworks_generated_V1_0_example",
82 "neuralnetworks_generated_V1_1_example",
83 "neuralnetworks_generated_V1_2_example",
84 ],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010085 header_libs: [
86 "libneuralnetworks_headers",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010087 ],
Michael Butlerd09c0ee2020-03-12 15:12:23 -070088 test_suites: [
Dan Shiba894f82020-03-26 00:06:39 -070089 "vts",
Michael Butlerd09c0ee2020-03-12 15:12:23 -070090 ],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010091}