• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_native_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_native_license"],
22}
23
24sharedLibraries = [
25    "libbase",
26    "libcutils",
27    "libgui",
28    "liblog",
29    "libpdx_default_transport",
30    "libsync",
31    "libui",
32    "libutils",
33]
34
35cc_library_static {
36    name: "libbufferhubd",
37    srcs: [
38        "buffer_hub.cpp",
39        "consumer_channel.cpp",
40        "consumer_queue_channel.cpp",
41        "producer_channel.cpp",
42        "producer_queue_channel.cpp",
43    ],
44    cflags: [
45        "-DLOG_TAG=\"libbufferhubd\"",
46        "-DTRACE=0",
47        "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
48    ],
49    export_include_dirs: ["include"],
50    header_libs: ["libdvr_headers"],
51    shared_libs: sharedLibraries,
52    static_libs: [
53        "libbufferhub",
54    ],
55}
56
57cc_binary {
58    srcs: ["bufferhubd.cpp"],
59    system_ext_specific: true,
60    cflags: [
61        "-DLOG_TAG=\"bufferhubd\"",
62        "-DTRACE=0",
63        "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
64    ],
65    header_libs: ["libdvr_headers"],
66    shared_libs: sharedLibraries,
67    static_libs: [
68        "libbufferhub",
69        "libbufferhubd",
70        "libperformance",
71    ],
72    name: "bufferhubd",
73    init_rc: ["bufferhubd.rc"],
74}
75