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
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_library_static {
22    name: "VtsHalHidlTestUtils",
23    srcs : [
24        "VtsHalHidlTargetCallbackBase.cpp",
25        "VtsCoreUtil.cpp",
26    ],
27
28    cflags: ["-Wall", "-Werror"],
29
30    shared_libs: [
31        "libhidl-gen-utils",
32        "libhidlbase",
33        "liblog",
34        "libcutils",
35    ],
36
37    static_libs : [
38        "libgtest",
39        "libutils",
40    ],
41    export_include_dirs: ["."],
42    export_static_lib_headers: [
43        "libgtest",
44        "libutils",
45    ],
46}
47
48// TODO: Delete this library after all tests using VtsHalHidlTargetTestBase
49// are converted or obsoleted.
50cc_library_static {
51    name: "VtsHalHidlTargetTestBase",
52    srcs : [
53        "VtsHalHidlTargetTestBase.cpp",
54        "VtsHalHidlTargetCallbackBase.cpp",
55        "VtsHalHidlTargetTestEnvBase.cpp",
56        "VtsCoreUtil.cpp",
57    ],
58
59    cflags: ["-Wall", "-Werror"],
60
61    shared_libs: [
62        "libhidl-gen-utils",
63        "libhidlbase",
64        "liblog",
65        "libcutils",
66    ],
67
68    static_libs : [
69        "libgtest",
70        "libutils",
71    ],
72    export_include_dirs: ["."],
73    export_static_lib_headers: [
74        "libgtest",
75        "libutils",
76    ],
77}
78