blob: 87e851930d47af162885b5fcfd6cea0bcd60fb33 [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
David Gross2452ee52019-12-20 14:22:15 -080017cc_defaults {
18 name: "neuralnetworks_vts_functional_defaults",
19 defaults: ["VtsHalTargetTestDefaults"],
20 arch: {
21 x86: {
22 cflags: [ "-D_Float16=__fp16",
23 "-Xclang", "-fnative-half-type",
24 "-Xclang", "-fallow-half-arguments-and-returns" ],
25 },
26 x86_64: {
27 cflags: [ "-D_Float16=__fp16",
28 "-Xclang", "-fnative-half-type",
29 "-Xclang", "-fallow-half-arguments-and-returns" ],
30 },
31 },
32}
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 Gross2452ee52019-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",
Miao Wang4862d612018-02-05 17:26:54 -080053 "libneuralnetworks_utils",
54 ],
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 Gross2452ee52019-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",
Xusong Wangee80b022019-08-22 14:58:16 -070065 "TestAssertions.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070066 "ValidateModel.cpp",
67 "ValidateRequest.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070068 "VtsHalNeuralnetworks.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010069 "GeneratedTestHarness.cpp",
Michael Butler0e2ac1b2017-09-01 10:59:38 -070070 ],
Miao Wange586a232019-01-22 13:57:14 -080071 shared_libs: [
Michael Butler29471a82019-01-15 11:02:55 -080072 "libfmq",
Miao Wange586a232019-01-22 13:57:14 -080073 "libnativewindow",
74 ],
Tri Vo0cd97822017-08-04 10:55:31 -070075 static_libs: [
Michael Butler7ed61352018-03-22 16:37:57 -070076 "android.hardware.neuralnetworks@1.0",
Michael Butlerbb4ff652017-07-28 19:53:28 -070077 "android.hidl.allocator@1.0",
78 "android.hidl.memory@1.0",
Michael K. Sandersda3bdbc2018-10-19 14:39:09 +010079 "libgmock",
Tri Vo0cd97822017-08-04 10:55:31 -070080 "libhidlmemory",
Xusong Wang7df43062019-08-09 16:38:14 -070081 "libneuralnetworks_generated_test_harness",
Miao Wang4862d612018-02-05 17:26:54 -080082 "libneuralnetworks_utils",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010083 "VtsHalNeuralNetworksV1_0_utils",
Michael Butlerbb4ff652017-07-28 19:53:28 -070084 ],
Michael Butler07633282019-08-29 11:08:25 -070085 whole_static_libs: [
86 "neuralnetworks_generated_V1_0_example",
87 ],
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -070088 header_libs: [
Miao Wang4862d612018-02-05 17:26:54 -080089 "libneuralnetworks_headers",
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -070090 ],
Dan Shiaad51fa2020-04-05 14:34:48 -070091 test_suites: ["general-tests", "vts"],
Michael K. Sandersfc2b10e2018-11-07 15:53:28 +000092}