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