blob: 499a8f69ff0ee309ff488c4d8d14fd3ac3dc6d2d [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 = [
Jiwen 'Steve' Cai2e06c1c2018-07-30 21:35:32 -070016 "buffer_channel.cpp",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070017 "buffer_hub.cpp",
Jiwen 'Steve' Cai2e06c1c2018-07-30 21:35:32 -070018 "buffer_node.cpp",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070019 "bufferhubd.cpp",
20 "consumer_channel.cpp",
21 "producer_channel.cpp",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070022 "consumer_queue_channel.cpp",
23 "producer_queue_channel.cpp",
24]
25
26headerLibraries = ["libdvr_headers"]
27
28staticLibraries = [
29 "libperformance",
30 "libbufferhub",
31]
32
33sharedLibraries = [
34 "libbase",
35 "libbinder",
36 "libcutils",
37 "liblog",
38 "libsync",
39 "libutils",
40 "libgui",
41 "libui",
42 "libpdx_default_transport",
43]
44
45cc_binary {
46 srcs: sourceFiles,
47 cflags: [
48 "-DLOG_TAG=\"bufferhubd\"",
49 "-DTRACE=0",
50 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
51 ],
52 header_libs: headerLibraries,
53 static_libs: staticLibraries,
54 shared_libs: sharedLibraries,
55 name: "bufferhubd",
56 init_rc: ["bufferhubd.rc"],
57}