Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2021 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 | |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 26 | cc_test { |
| 27 | name: "VtsHalNeuralnetworksTargetTest", |
| 28 | defaults: [ |
Michael Butler | abc8691 | 2021-10-28 01:54:26 +0000 | [diff] [blame^] | 29 | "neuralnetworks_use_latest_utils_hal_aidl", |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 30 | "neuralnetworks_vts_functional_defaults", |
| 31 | "use_libaidlvintf_gtest_helper_static", |
| 32 | ], |
| 33 | srcs: [ |
| 34 | "BasicTests.cpp", |
| 35 | "Callbacks.cpp", |
| 36 | "CompilationCachingTests.cpp", |
| 37 | "GeneratedTestHarness.cpp", |
| 38 | "MemoryDomainTests.cpp", |
| 39 | "QualityOfServiceTests.cpp", |
| 40 | "TestAssertions.cpp", |
| 41 | "TestMain.cpp", |
| 42 | "Utils.cpp", |
| 43 | "ValidateModel.cpp", |
| 44 | "ValidateRequest.cpp", |
| 45 | "VtsHalNeuralnetworks.cpp", |
| 46 | ], |
| 47 | shared_libs: [ |
| 48 | "libbinder_ndk", |
| 49 | "libnativewindow", |
| 50 | "libvndksupport", |
| 51 | ], |
| 52 | static_libs: [ |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 53 | "android.hidl.allocator@1.0", |
| 54 | "android.hidl.memory@1.0", |
Michael Butler | f03ebd9 | 2021-03-25 15:27:38 -0700 | [diff] [blame] | 55 | "libaidlcommonsupport", |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 56 | "libgmock", |
| 57 | "libhidlmemory", |
Michael Butler | abc8691 | 2021-10-28 01:54:26 +0000 | [diff] [blame^] | 58 | "libneuralnetworks_common", |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 59 | "libneuralnetworks_generated_test_harness", |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 60 | "libsync", |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 61 | ], |
| 62 | whole_static_libs: [ |
Ian Hua | ca46f97 | 2021-10-15 11:06:31 +0100 | [diff] [blame] | 63 | "neuralnetworks_generated_AIDL_V2_example", |
Lev Proleev | c185e88 | 2020-12-15 19:25:32 +0000 | [diff] [blame] | 64 | "neuralnetworks_generated_V1_0_example", |
| 65 | "neuralnetworks_generated_V1_1_example", |
| 66 | "neuralnetworks_generated_V1_2_example", |
| 67 | "neuralnetworks_generated_V1_3_example", |
| 68 | ], |
| 69 | header_libs: [ |
| 70 | "libbase_headers", |
| 71 | "libneuralnetworks_headers", |
| 72 | ], |
| 73 | test_suites: [ |
| 74 | "general-tests", |
| 75 | "vts", |
| 76 | ], |
| 77 | } |