blob: 7e4b5bbab15d7abc542c5b0d481e88846b5c1d01 [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 {
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 Proleev26d1bc82019-08-30 11:57:18 +010026cc_library_static {
David Gross6174f002018-05-14 12:23:04 -070027 name: "VtsHalNeuralNetworksV1_2_utils",
David Gross0db1b542019-12-20 14:22:15 -080028 defaults: ["neuralnetworks_vts_functional_defaults"],
Lev Proleev26d1bc82019-08-30 11:57:18 +010029 export_include_dirs: ["include"],
30 srcs: [
31 "Callbacks.cpp",
David Gross6174f002018-05-14 12:23:04 -070032 "Utils.cpp",
Lev Proleev26d1bc82019-08-30 11:57:18 +010033 ],
34 static_libs: [
35 "android.hardware.neuralnetworks@1.0",
36 "android.hardware.neuralnetworks@1.1",
37 "android.hardware.neuralnetworks@1.2",
38 ],
39 header_libs: [
40 "libbase_headers",
Michael Butlerd09c0ee2020-03-12 15:12:23 -070041 ],
Lev Proleev26d1bc82019-08-30 11:57:18 +010042}
43
Michael Butler07633282019-08-29 11:08:25 -070044cc_test {
45 name: "VtsHalNeuralnetworksV1_2TargetTest",
David Gross0db1b542019-12-20 14:22:15 -080046 defaults: ["neuralnetworks_vts_functional_defaults"],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080047 tidy_timeout_srcs: [
48 "CompilationCachingTests.cpp",
49 ],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010050 srcs: [
Michael Butler07633282019-08-29 11:08:25 -070051 "BasicTests.cpp",
Michael Butler07633282019-08-29 11:08:25 -070052 "CompilationCachingTests.cpp",
53 "GeneratedTestHarness.cpp",
Xusong Wangee80b022019-08-22 14:58:16 -070054 "TestAssertions.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010055 "TestMain.cpp",
Michael Butlerd09c0ee2020-03-12 15:12:23 -070056 "ValidateBurst.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010057 "ValidateModel.cpp",
58 "ValidateRequest.cpp",
59 "VtsHalNeuralnetworks.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010060 ],
61 local_include_dirs: ["include"],
62 shared_libs: [
63 "libfmq",
64 "libnativewindow",
65 ],
66 static_libs: [
Michael Butlerd09c0ee2020-03-12 15:12:23 -070067 "VtsHalNeuralNetworksV1_0_utils",
David Gross6174f002018-05-14 12:23:04 -070068 "VtsHalNeuralNetworksV1_2_utils",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010069 "android.hardware.neuralnetworks@1.0",
70 "android.hardware.neuralnetworks@1.1",
71 "android.hardware.neuralnetworks@1.2",
72 "android.hidl.allocator@1.0",
73 "android.hidl.memory@1.0",
74 "libgmock",
75 "libhidlmemory",
Xusong Wangead950d2019-08-09 16:45:24 -070076 "libneuralnetworks_generated_test_harness",
Michael Butlerc3310672021-11-01 18:19:57 -070077 "libneuralnetworks_common",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010078 ],
Michael Butler07633282019-08-29 11:08:25 -070079 whole_static_libs: [
80 "neuralnetworks_generated_V1_0_example",
81 "neuralnetworks_generated_V1_1_example",
82 "neuralnetworks_generated_V1_2_example",
83 ],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010084 header_libs: [
85 "libneuralnetworks_headers",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010086 ],
Michael Butlerd09c0ee2020-03-12 15:12:23 -070087 test_suites: [
Dan Shiba894f82020-03-26 00:06:39 -070088 "vts",
Michael Butlerd09c0ee2020-03-12 15:12:23 -070089 ],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010090}