1// 2// Copyright (C) 2019 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 17package { 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 26cc_library_static { 27 name: "VtsHalNeuralNetworksV1_3_utils", 28 defaults: ["neuralnetworks_vts_functional_defaults"], 29 export_include_dirs: ["include"], 30 srcs: [ 31 "Callbacks.cpp", 32 "Utils.cpp", 33 ], 34 static_libs: [ 35 "android.hardware.neuralnetworks@1.0", 36 "android.hardware.neuralnetworks@1.1", 37 "android.hardware.neuralnetworks@1.2", 38 "android.hardware.neuralnetworks@1.3", 39 ], 40 header_libs: [ 41 "libbase_headers", 42 ], 43} 44 45cc_test { 46 name: "VtsHalNeuralnetworksV1_3TargetTest", 47 defaults: ["neuralnetworks_vts_functional_defaults"], 48 srcs: [ 49 "BasicTests.cpp", 50 "CompilationCachingTests.cpp", 51 "GeneratedTestHarness.cpp", 52 "MemoryDomainTests.cpp", 53 "QualityOfServiceTests.cpp", 54 "TestAssertions.cpp", 55 "TestMain.cpp", 56 "ValidateBurst.cpp", 57 "ValidateModel.cpp", 58 "ValidateRequest.cpp", 59 "VtsHalNeuralnetworks.cpp", 60 ], 61 shared_libs: [ 62 "libfmq", 63 "libnativewindow", 64 ], 65 static_libs: [ 66 "VtsHalNeuralNetworksV1_0_utils", 67 "VtsHalNeuralNetworksV1_2_utils", 68 "VtsHalNeuralNetworksV1_3_utils", 69 "android.hardware.neuralnetworks-V1-ndk_platform", 70 "android.hardware.neuralnetworks@1.0", 71 "android.hardware.neuralnetworks@1.1", 72 "android.hardware.neuralnetworks@1.2", 73 "android.hardware.neuralnetworks@1.3", 74 "android.hidl.allocator@1.0", 75 "android.hidl.memory@1.0", 76 "libgmock", 77 "libhidlmemory", 78 "libneuralnetworks_generated_test_harness", 79 "libneuralnetworks_utils", 80 "libsync", 81 ], 82 whole_static_libs: [ 83 "neuralnetworks_generated_V1_0_example", 84 "neuralnetworks_generated_V1_1_example", 85 "neuralnetworks_generated_V1_2_example", 86 "neuralnetworks_generated_V1_3_example", 87 ], 88 header_libs: [ 89 "libneuralnetworks_headers", 90 ], 91 test_suites: [ 92 "general-tests", 93 "vts", 94 ], 95} 96