blob: 9a91560fea0027b6700bce412ebebb23481fff10 [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",
28 defaults: ["VtsHalTargetTestDefaults"],
29 arch: {
30 x86: {
31 cflags: [ "-D_Float16=__fp16",
32 "-Xclang", "-fnative-half-type",
33 "-Xclang", "-fallow-half-arguments-and-returns" ],
34 },
35 x86_64: {
36 cflags: [ "-D_Float16=__fp16",
37 "-Xclang", "-fnative-half-type",
38 "-Xclang", "-fallow-half-arguments-and-returns" ],
39 },
40 },
41}
42
Miao Wang4862d612018-02-05 17:26:54 -080043cc_library_static {
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010044 name: "VtsHalNeuralNetworksV1_0_utils",
Miao Wang4862d612018-02-05 17:26:54 -080045 srcs: [
46 "Callbacks.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010047 "Utils.cpp",
Miao Wang4862d612018-02-05 17:26:54 -080048 ],
David Gross0db1b542019-12-20 14:22:15 -080049 defaults: ["neuralnetworks_vts_functional_defaults"],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010050 export_include_dirs: ["include"],
Miao Wange586a232019-01-22 13:57:14 -080051 shared_libs: [
Michael Butler29471a82019-01-15 11:02:55 -080052 "libfmq",
Miao Wange586a232019-01-22 13:57:14 -080053 "libnativewindow",
54 ],
Miao Wang4862d612018-02-05 17:26:54 -080055 static_libs: [
56 "android.hardware.neuralnetworks@1.0",
Miao Wang4862d612018-02-05 17:26:54 -080057 "android.hidl.allocator@1.0",
58 "android.hidl.memory@1.0",
Michael K. Sandersda3bdbc2018-10-19 14:39:09 +010059 "libgmock",
Miao Wang4862d612018-02-05 17:26:54 -080060 "libhidlmemory",
Xusong Wang7df43062019-08-09 16:38:14 -070061 "libneuralnetworks_generated_test_harness",
Miao Wang4862d612018-02-05 17:26:54 -080062 "libneuralnetworks_utils",
63 ],
64 header_libs: [
65 "libneuralnetworks_headers",
Miao Wang4862d612018-02-05 17:26:54 -080066 ],
67}
68
Michael Butler07633282019-08-29 11:08:25 -070069cc_test {
70 name: "VtsHalNeuralnetworksV1_0TargetTest",
David Gross0db1b542019-12-20 14:22:15 -080071 defaults: ["neuralnetworks_vts_functional_defaults"],
Michael Butler0e2ac1b2017-09-01 10:59:38 -070072 srcs: [
Michael Butler07633282019-08-29 11:08:25 -070073 "BasicTests.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010074 "GeneratedTestHarness.cpp",
Xusong Wangee80b022019-08-22 14:58:16 -070075 "TestAssertions.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010076 "TestMain.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070077 "ValidateModel.cpp",
78 "ValidateRequest.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070079 "VtsHalNeuralnetworks.cpp",
Michael Butler0e2ac1b2017-09-01 10:59:38 -070080 ],
Miao Wange586a232019-01-22 13:57:14 -080081 shared_libs: [
Michael Butler29471a82019-01-15 11:02:55 -080082 "libfmq",
Miao Wange586a232019-01-22 13:57:14 -080083 "libnativewindow",
84 ],
Tri Vo0cd97822017-08-04 10:55:31 -070085 static_libs: [
Michael Butler7ed61352018-03-22 16:37:57 -070086 "android.hardware.neuralnetworks@1.0",
Michael Butlerbb4ff652017-07-28 19:53:28 -070087 "android.hidl.allocator@1.0",
88 "android.hidl.memory@1.0",
Michael K. Sandersda3bdbc2018-10-19 14:39:09 +010089 "libgmock",
Tri Vo0cd97822017-08-04 10:55:31 -070090 "libhidlmemory",
Xusong Wang7df43062019-08-09 16:38:14 -070091 "libneuralnetworks_generated_test_harness",
Miao Wang4862d612018-02-05 17:26:54 -080092 "libneuralnetworks_utils",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010093 "VtsHalNeuralNetworksV1_0_utils",
Michael Butlerbb4ff652017-07-28 19:53:28 -070094 ],
Michael Butler07633282019-08-29 11:08:25 -070095 whole_static_libs: [
96 "neuralnetworks_generated_V1_0_example",
97 ],
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -070098 header_libs: [
Miao Wang4862d612018-02-05 17:26:54 -080099 "libneuralnetworks_headers",
I-Jui (Ray) Sung2c4e1362017-09-06 02:15:54 -0700100 ],
Dan Shiba894f82020-03-26 00:06:39 -0700101 test_suites: ["general-tests", "vts"],
Michael K. Sandersfc2b10e2018-11-07 15:53:28 +0000102}