blob: 6009a95cc7f7c9079e83b44003564c126a33768c [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",
20 "consumer_queue_channel.cpp",
21 "producer_queue_channel.cpp",
22]
23
24headerLibraries = ["libdvr_headers"]
25
26staticLibraries = [
27 "libperformance",
28 "libbufferhub",
29]
30
31sharedLibraries = [
32 "libbase",
33 "libbinder",
34 "libcutils",
35 "liblog",
36 "libsync",
37 "libutils",
38 "libgui",
39 "libui",
40 "libpdx_default_transport",
41]
42
43cc_binary {
44 srcs: sourceFiles,
45 cflags: [
46 "-DLOG_TAG=\"bufferhubd\"",
47 "-DTRACE=0",
48 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
49 ],
50 header_libs: headerLibraries,
51 static_libs: staticLibraries,
52 shared_libs: sharedLibraries,
53 name: "bufferhubd",
54 init_rc: ["bufferhubd.rc"],
55}