Michael Butler | bb4ff65 | 2017-07-28 19:53:28 -0700 | [diff] [blame] | 1 | // |
| 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 Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 17 | package { |
| 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 Gross | 0db1b54 | 2019-12-20 14:22:15 -0800 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "neuralnetworks_vts_functional_defaults", |
Ray Hernandez | 338d6f8 | 2021-08-11 21:29:20 +0000 | [diff] [blame] | 28 | defaults: [ |
| 29 | "VtsHalTargetTestDefaults", |
| 30 | "neuralnetworks_float16", |
| 31 | ], |
David Gross | 0db1b54 | 2019-12-20 14:22:15 -0800 | [diff] [blame] | 32 | } |
| 33 | |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 34 | cc_library_static { |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 35 | name: "VtsHalNeuralNetworksV1_0_utils", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 36 | srcs: [ |
| 37 | "Callbacks.cpp", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 38 | "Utils.cpp", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 39 | ], |
David Gross | 0db1b54 | 2019-12-20 14:22:15 -0800 | [diff] [blame] | 40 | defaults: ["neuralnetworks_vts_functional_defaults"], |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 41 | export_include_dirs: ["include"], |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 42 | shared_libs: [ |
Michael Butler | 29471a8 | 2019-01-15 11:02:55 -0800 | [diff] [blame] | 43 | "libfmq", |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 44 | "libnativewindow", |
| 45 | ], |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 46 | static_libs: [ |
| 47 | "android.hardware.neuralnetworks@1.0", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 48 | "android.hidl.allocator@1.0", |
| 49 | "android.hidl.memory@1.0", |
Michael K. Sanders | da3bdbc | 2018-10-19 14:39:09 +0100 | [diff] [blame] | 50 | "libgmock", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 51 | "libhidlmemory", |
Xusong Wang | 7df4306 | 2019-08-09 16:38:14 -0700 | [diff] [blame] | 52 | "libneuralnetworks_generated_test_harness", |
Michael Butler | c331067 | 2021-11-01 18:19:57 -0700 | [diff] [blame] | 53 | "libneuralnetworks_common", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 54 | ], |
| 55 | header_libs: [ |
| 56 | "libneuralnetworks_headers", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 57 | ], |
| 58 | } |
| 59 | |
Michael Butler | 0763328 | 2019-08-29 11:08:25 -0700 | [diff] [blame] | 60 | cc_test { |
| 61 | name: "VtsHalNeuralnetworksV1_0TargetTest", |
David Gross | 0db1b54 | 2019-12-20 14:22:15 -0800 | [diff] [blame] | 62 | defaults: ["neuralnetworks_vts_functional_defaults"], |
Michael Butler | 0e2ac1b | 2017-09-01 10:59:38 -0700 | [diff] [blame] | 63 | srcs: [ |
Michael Butler | 0763328 | 2019-08-29 11:08:25 -0700 | [diff] [blame] | 64 | "BasicTests.cpp", |
Slava Shklyaev | 3722d6d | 2020-06-16 16:43:01 +0100 | [diff] [blame] | 65 | "GeneratedTestHarness.cpp", |
Xusong Wang | ee80b02 | 2019-08-22 14:58:16 -0700 | [diff] [blame] | 66 | "TestAssertions.cpp", |
Slava Shklyaev | 3722d6d | 2020-06-16 16:43:01 +0100 | [diff] [blame] | 67 | "TestMain.cpp", |
Michael Butler | 7ed6135 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 68 | "ValidateModel.cpp", |
| 69 | "ValidateRequest.cpp", |
Michael Butler | 7ed6135 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 70 | "VtsHalNeuralnetworks.cpp", |
Michael Butler | 0e2ac1b | 2017-09-01 10:59:38 -0700 | [diff] [blame] | 71 | ], |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 72 | shared_libs: [ |
Michael Butler | 29471a8 | 2019-01-15 11:02:55 -0800 | [diff] [blame] | 73 | "libfmq", |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 74 | "libnativewindow", |
| 75 | ], |
Tri Vo | 0cd9782 | 2017-08-04 10:55:31 -0700 | [diff] [blame] | 76 | static_libs: [ |
Ray Hernandez | 338d6f8 | 2021-08-11 21:29:20 +0000 | [diff] [blame] | 77 | "VtsHalNeuralNetworksV1_0_utils", |
Michael Butler | 7ed6135 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 78 | "android.hardware.neuralnetworks@1.0", |
Michael Butler | bb4ff65 | 2017-07-28 19:53:28 -0700 | [diff] [blame] | 79 | "android.hidl.allocator@1.0", |
| 80 | "android.hidl.memory@1.0", |
Michael K. Sanders | da3bdbc | 2018-10-19 14:39:09 +0100 | [diff] [blame] | 81 | "libgmock", |
Tri Vo | 0cd9782 | 2017-08-04 10:55:31 -0700 | [diff] [blame] | 82 | "libhidlmemory", |
Xusong Wang | 7df4306 | 2019-08-09 16:38:14 -0700 | [diff] [blame] | 83 | "libneuralnetworks_generated_test_harness", |
Michael Butler | c331067 | 2021-11-01 18:19:57 -0700 | [diff] [blame] | 84 | "libneuralnetworks_common", |
Michael Butler | bb4ff65 | 2017-07-28 19:53:28 -0700 | [diff] [blame] | 85 | ], |
Michael Butler | 0763328 | 2019-08-29 11:08:25 -0700 | [diff] [blame] | 86 | whole_static_libs: [ |
| 87 | "neuralnetworks_generated_V1_0_example", |
| 88 | ], |
I-Jui (Ray) Sung | 2c4e136 | 2017-09-06 02:15:54 -0700 | [diff] [blame] | 89 | header_libs: [ |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 90 | "libneuralnetworks_headers", |
I-Jui (Ray) Sung | 2c4e136 | 2017-09-06 02:15:54 -0700 | [diff] [blame] | 91 | ], |
Ray Hernandez | 338d6f8 | 2021-08-11 21:29:20 +0000 | [diff] [blame] | 92 | test_suites: [ |
Ray Hernandez | 338d6f8 | 2021-08-11 21:29:20 +0000 | [diff] [blame] | 93 | "vts", |
| 94 | ], |
Michael K. Sanders | fc2b10e | 2018-11-07 15:53:28 +0000 | [diff] [blame] | 95 | } |