1//
2// Copyright (C) 2016 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_shared {
22
23    name: "libvts_common",
24    host_supported: true,
25    // TODO(b/153609531): remove when no longer needed.
26    native_bridge_supported: true,
27
28    cflags: [
29        "-Wall",
30        "-Werror",
31    ],
32
33    srcs: [
34        "utils/InterfaceSpecUtil.cpp",
35        "utils/StringUtil.cpp",
36    ],
37
38    include_dirs: [
39        "frameworks/native/include",
40        "system/core/include",
41        "system/extras",
42    ],
43
44    local_include_dirs: ["include"],
45
46    shared_libs: [
47        "libbase",
48        "libprotobuf-cpp-full",
49        "libvts_multidevice_proto",
50    ],
51
52    header_libs: [
53        "libhardware_headers",
54    ],
55
56    export_header_lib_headers: [
57        "libhardware_headers",
58    ],
59
60    export_include_dirs: ["include"],
61
62    target: {
63        android: {
64            srcs: [
65                "binder/VtsFuzzerBinderService.cpp",
66                "component_loader/DllLoader.cpp",
67                "component_loader/HalDriverLoader.cpp",
68                "driver_base/DriverBase.cpp",
69                "driver_base/DriverCallbackBase.cpp",
70                "driver_manager/VtsHalDriverManager.cpp",
71            ],
72            shared_libs: [
73                "libbinder",
74                "libcutils",
75                "libdl",
76                "liblog",
77                "libutils",
78                "libvts_codecoverage",
79                "libvts_drivercomm",
80                "libvts_multidevice_proto",
81                "libvts_resource_manager",
82            ],
83        },
84    },
85}
86