blob: d802911234b8f795fc6d2d7d8bfdb1b82197cf5d [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",
Slava Shklyaev8c8efd62020-06-16 16:43:01 +010065 "GeneratedTestHarness.cpp",
Xusong Wangee80b022019-08-22 14:58:16 -070066 "TestAssertions.cpp",
Slava Shklyaev8c8efd62020-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: [
Michael Butler7ed61352018-03-22 16:37:57 -070077 "android.hardware.neuralnetworks@1.0",
Michael Butlerbb4ff652017-07-28 19:53:28 -070078 "android.hidl.allocator@1.0",
79 "android.hidl.memory@1.0",
Michael K. Sandersda3bdbc2018-10-19 14:39:09 +010080 "libgmock",
Tri Vo0cd97822017-08-04 10:55:31 -070081 "libhidlmemory",
Xusong Wang7df43062019-08-09 16:38:14 -070082 "libneuralnetworks_generated_test_harness",
Miao Wang4862d612018-02-05 17:26:54 -080083 "libneuralnetworks_utils",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010084 "VtsHalNeuralNetworksV1_0_utils",
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 ],
Dan Shiaad51fa2020-04-05 14:34:48 -070092 test_suites: ["general-tests", "vts"],
Michael K. Sandersfc2b10e2018-11-07 15:53:28 +000093}