blob: 61228465403deeee0361d0d327ff0136f890777d [file] [log] [blame]
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -07001// 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.cpp",
17 "bufferhubd.cpp",
18 "consumer_channel.cpp",
19 "producer_channel.cpp",
Jiwen 'Steve' Cai23c1a732018-03-12 12:16:47 -070020 "detached_buffer_channel.cpp",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070021 "consumer_queue_channel.cpp",
22 "producer_queue_channel.cpp",
23]
24
25headerLibraries = ["libdvr_headers"]
26
27staticLibraries = [
28 "libperformance",
29 "libbufferhub",
30]
31
32sharedLibraries = [
33 "libbase",
34 "libbinder",
35 "libcutils",
36 "liblog",
37 "libsync",
38 "libutils",
39 "libgui",
40 "libui",
41 "libpdx_default_transport",
42]
43
44cc_binary {
45 srcs: sourceFiles,
46 cflags: [
47 "-DLOG_TAG=\"bufferhubd\"",
48 "-DTRACE=0",
49 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
50 ],
51 header_libs: headerLibraries,
52 static_libs: staticLibraries,
53 shared_libs: sharedLibraries,
54 name: "bufferhubd",
55 init_rc: ["bufferhubd.rc"],
56}