blob: a41f37fb5b80d8e4d379f4e465671645a0d35609 [file] [log] [blame]
Michael Butlerbb4ff652017-07-28 19:53:28 -07001//
2// Copyright (C) 2017 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
David Gross0db1b542019-12-20 14:22:15 -080026cc_defaults {
27 name: "neuralnetworks_vts_functional_defaults",
Ray Hernandez338d6f82021-08-11 21:29:20 +000028 defaults: [
29 "VtsHalTargetTestDefaults",
30 "neuralnetworks_float16",
31 ],
David Gross0db1b542019-12-20 14:22:15 -080032}
33
Miao Wang4862d612018-02-05 17:26:54 -080034cc_library_static {
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010035 name: "VtsHalNeuralNetworksV1_0_utils",
Miao Wang4862d612018-02-05 17:26:54 -080036 srcs: [
37 "Callbacks.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010038 "Utils.cpp",
Miao Wang4862d612018-02-05 17:26:54 -080039 ],
David Gross0db1b542019-12-20 14:22:15 -080040 defaults: ["neuralnetworks_vts_functional_defaults"],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010041 export_include_dirs: ["include"],
Miao Wange586a232019-01-22 13:57:14 -080042 shared_libs: [
Michael Butler29471a82019-01-15 11:02:55 -080043 "libfmq",
Miao Wange586a232019-01-22 13:57:14 -080044 "libnativewindow",
45 ],
Miao Wang4862d612018-02-05 17:26:54 -080046 static_libs: [
47 "android.hardware.neuralnetworks@1.0",
Miao Wang4862d612018-02-05 17:26:54 -080048 "android.hidl.allocator@1.0",
49 "android.hidl.memory@1.0",
Michael K. Sandersda3bdbc2018-10-19 14:39:09 +010050 "libgmock",
Miao Wang4862d612018-02-05 17:26:54 -080051 "libhidlmemory",
Xusong Wang7df43062019-08-09 16:38:14 -070052 "libneuralnetworks_generated_test_harness",
Michael Butlerc3310672021-11-01 18:19:57 -070053 "libneuralnetworks_common",
Miao Wang4862d612018-02-05 17:26:54 -080054 ],
55 header_libs: [
56 "libneuralnetworks_headers",
Miao Wang4862d612018-02-05 17:26:54 -080057 ],
58}
59
Michael Butler07633282019-08-29 11:08:25 -070060cc_test {
61 name: "VtsHalNeuralnetworksV1_0TargetTest",
David Gross0db1b542019-12-20 14:22:15 -080062 defaults: ["neuralnetworks_vts_functional_defaults"],
Michael Butler0e2ac1b2017-09-01 10:59:38 -070063 srcs: [
Michael Butler07633282019-08-29 11:08:25 -070064 "BasicTests.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010065 "GeneratedTestHarness.cpp",
Xusong Wangee80b022019-08-22 14:58:16 -070066 "TestAssertions.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010067 "TestMain.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070068 "ValidateModel.cpp",
69 "ValidateRequest.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070070 "VtsHalNeuralnetworks.cpp",
Michael Butler0e2ac1b2017-09-01 10:59:38 -070071 ],
Miao Wange586a232019-01-22 13:57:14 -080072 shared_libs: [
Michael Butler29471a82019-01-15 11:02:55 -080073 "libfmq",
Miao Wange586a232019-01-22 13:57:14 -080074 "libnativewindow",
75 ],
Tri Vo0cd97822017-08-04 10:55:31 -070076 static_libs: [
Ray Hernandez338d6f82021-08-11 21:29:20 +000077 "VtsHalNeuralNetworksV1_0_utils",
Michael Butler7ed61352018-03-22 16:37:57 -070078 "android.hardware.neuralnetworks@1.0",
Michael Butlerbb4ff652017-07-28 19:53:28 -070079 "android.hidl.allocator@1.0",
80 "android.hidl.memory@1.0",
Michael K. Sandersda3bdbc2018-10-19 14:39:09 +010081 "libgmock",
Tri Vo0cd97822017-08-04 10:55:31 -070082 "libhidlmemory",
Xusong Wang7df43062019-08-09 16:38:14 -070083 "libneuralnetworks_generated_test_harness",
Michael Butlerc3310672021-11-01 18:19:57 -070084 "libneuralnetworks_common",
Michael Butlerbb4ff652017-07-28 19:53:28 -070085 ],
Michael Butler07633282019-08-29 11:08:25 -070086 whole_static_libs: [
87 "neuralnetworks_generated_V1_0_example",
88 ],
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -070089 header_libs: [
Miao Wang4862d612018-02-05 17:26:54 -080090 "libneuralnetworks_headers",
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -070091 ],
Ray Hernandez338d6f82021-08-11 21:29:20 +000092 test_suites: [
Ray Hernandez338d6f82021-08-11 21:29:20 +000093 "vts",
94 ],
Michael K. Sandersfc2b10e2018-11-07 15:53:28 +000095}