blob: 8048e62ff0e7a6ed15c17a90ee70a13637b5df63 [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",
Ray Hernandez338d6f82021-08-11 21:29:20 +000030 ],
David Gross0db1b542019-12-20 14:22:15 -080031}
32
Miao Wang4862d612018-02-05 17:26:54 -080033cc_library_static {
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010034 name: "VtsHalNeuralNetworksV1_0_utils",
Miao Wang4862d612018-02-05 17:26:54 -080035 srcs: [
36 "Callbacks.cpp",
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010037 "Utils.cpp",
Miao Wang4862d612018-02-05 17:26:54 -080038 ],
David Gross0db1b542019-12-20 14:22:15 -080039 defaults: ["neuralnetworks_vts_functional_defaults"],
Slava Shklyaev73ee79d2019-05-14 14:15:14 +010040 export_include_dirs: ["include"],
Miao Wange586a232019-01-22 13:57:14 -080041 shared_libs: [
Michael Butler29471a82019-01-15 11:02:55 -080042 "libfmq",
Miao Wange586a232019-01-22 13:57:14 -080043 "libnativewindow",
44 ],
Miao Wang4862d612018-02-05 17:26:54 -080045 static_libs: [
46 "android.hardware.neuralnetworks@1.0",
Miao Wang4862d612018-02-05 17:26:54 -080047 "android.hidl.allocator@1.0",
48 "android.hidl.memory@1.0",
Michael K. Sandersda3bdbc2018-10-19 14:39:09 +010049 "libgmock",
Miao Wang4862d612018-02-05 17:26:54 -080050 "libhidlmemory",
Xusong Wang7df43062019-08-09 16:38:14 -070051 "libneuralnetworks_generated_test_harness",
Michael Butlerc3310672021-11-01 18:19:57 -070052 "libneuralnetworks_common",
Miao Wang4862d612018-02-05 17:26:54 -080053 ],
54 header_libs: [
55 "libneuralnetworks_headers",
Miao Wang4862d612018-02-05 17:26:54 -080056 ],
57}
58
Michael Butler07633282019-08-29 11:08:25 -070059cc_test {
60 name: "VtsHalNeuralnetworksV1_0TargetTest",
David Gross0db1b542019-12-20 14:22:15 -080061 defaults: ["neuralnetworks_vts_functional_defaults"],
Michael Butler0e2ac1b2017-09-01 10:59:38 -070062 srcs: [
Michael Butler07633282019-08-29 11:08:25 -070063 "BasicTests.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010064 "GeneratedTestHarness.cpp",
Xusong Wangee80b022019-08-22 14:58:16 -070065 "TestAssertions.cpp",
Slava Shklyaev3722d6d2020-06-16 16:43:01 +010066 "TestMain.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070067 "ValidateModel.cpp",
68 "ValidateRequest.cpp",
Michael Butler7ed61352018-03-22 16:37:57 -070069 "VtsHalNeuralnetworks.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: [
Ray Hernandez338d6f82021-08-11 21:29:20 +000076 "VtsHalNeuralNetworksV1_0_utils",
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",
Michael Butlerc3310672021-11-01 18:19:57 -070083 "libneuralnetworks_common",
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 ],
Ray Hernandez338d6f82021-08-11 21:29:20 +000091 test_suites: [
Ray Hernandez338d6f82021-08-11 21:29:20 +000092 "vts",
93 ],
Michael K. Sandersfc2b10e2018-11-07 15:53:28 +000094}