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 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library_static { 22 name: "libneuralnetworks_generated_test_harness", 23 srcs: [ 24 "TestHarness.cpp", 25 ], 26 defaults: ["neuralnetworks_defaults"], 27 host_supported: true, 28 vendor_available: true, 29 export_include_dirs: ["include"], 30 static_libs: [ 31 "libbase", 32 "libgmock", 33 "libgtest", 34 ], 35} 36 37cc_library_static { 38 name: "neuralnetworks_test_utils", 39 defaults: ["neuralnetworks_utils_defaults"], 40 srcs: [ 41 "Assertions.cpp", 42 "TestUtils.cpp", 43 ], 44 local_include_dirs: ["include/nnapi"], 45 export_include_dirs: ["include"], 46 static_libs: [ 47 "libneuralnetworks_generated_test_harness", 48 "neuralnetworks_types", 49 ], 50 header_libs: [ 51 "libbase_headers", 52 "libcutils_headers", 53 "libutils_headers", 54 ], 55} 56 57// Deprecated. 58cc_library_headers { 59 name: "libneuralnetworks_generated_test_harness_headers", 60 host_supported: false, 61 export_include_dirs: ["include_legacy"], 62} 63 64// For CTS that cannot depend on non-NDK library. 65filegroup { 66 name: "libneuralnetworks_generated_test_harness_for_cts", 67 srcs: [ 68 "TestHarness.cpp", 69 ], 70} 71 72cc_library_headers { 73 name: "libneuralnetworks_generated_test_harness_headers_for_cts", 74 export_include_dirs: ["include"], 75 sdk_version: "current", 76} 77