1// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15sourceFiles = [
16    "buffer_hub_queue_client.cpp",
17    "buffer_hub_queue_parcelable.cpp",
18]
19
20includeFiles = [
21    "include",
22]
23
24staticLibraries = [
25    "libbufferhub",
26]
27
28sharedLibraries = [
29    "libbase",
30    "libbinder",
31    "libcutils",
32    "libhardware",
33    "liblog",
34    "libui",
35    "libutils",
36    "libpdx_default_transport",
37]
38
39headerLibraries = [
40    "libdvr_headers",
41    "libnativebase_headers",
42]
43
44cc_library_shared {
45    name: "libbufferhubqueue",
46    cflags: [
47        "-DLOG_TAG=\"libbufferhubqueue\"",
48        "-DTRACE=0",
49        "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
50        "-Wall",
51        "-Werror",
52        "-Wno-format",
53        "-Wno-unused-parameter",
54        "-Wno-unused-variable",
55    ],
56    srcs: sourceFiles,
57    export_include_dirs: includeFiles,
58    export_static_lib_headers: staticLibraries,
59    static_libs: staticLibraries,
60    shared_libs: sharedLibraries,
61    header_libs: headerLibraries,
62}
63
64subdirs = ["benchmarks", "tests"]
65