blob: 04b9511cfee1cd2410a318ea5eeeddcdcff6dfbb [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
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070015sharedLibraries = [
16 "libbase",
17 "libbinder",
18 "libcutils",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070019 "libgui",
Fan Xucfd12742018-09-14 13:23:52 -070020 "liblog",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070021 "libpdx_default_transport",
Fan Xucfd12742018-09-14 13:23:52 -070022 "libsync",
23 "libui",
24 "libutils",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070025]
26
Fan Xucfd12742018-09-14 13:23:52 -070027cc_library_static {
28 name: "libbufferhubd",
29 srcs: [
30 "binder/android/dvr/IBufferHub.aidl",
31 "buffer_channel.cpp",
32 "buffer_hub.cpp",
33 "buffer_hub_binder.cpp",
34 "buffer_node.cpp",
35 "consumer_channel.cpp",
36 "consumer_queue_channel.cpp",
37 "producer_channel.cpp",
38 "producer_queue_channel.cpp",
39 ],
40 cflags: [
41 "-DLOG_TAG=\"libbufferhubd\"",
42 "-DTRACE=0",
43 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
44 ],
45 export_include_dirs: ["include"],
46 header_libs: ["libdvr_headers"],
47 shared_libs: sharedLibraries,
48 static_libs: [
49 "libbufferhub",
50 ],
51 aidl: {
52 local_include_dirs: ["binder"],
53 include_dirs: ["frameworks/native/aidl/binder"],
54 export_aidl_headers: true,
55 },
56}
57
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070058cc_binary {
Fan Xucfd12742018-09-14 13:23:52 -070059 srcs: ["bufferhubd.cpp"],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070060 cflags: [
61 "-DLOG_TAG=\"bufferhubd\"",
62 "-DTRACE=0",
63 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
64 ],
Fan Xucfd12742018-09-14 13:23:52 -070065 header_libs: ["libdvr_headers"],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070066 shared_libs: sharedLibraries,
Fan Xucfd12742018-09-14 13:23:52 -070067 static_libs: [
68 "libbufferhub",
69 "libbufferhubd",
70 "libperformance",
71 ],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070072 name: "bufferhubd",
73 init_rc: ["bufferhubd.rc"],
74}
Fan Xucfd12742018-09-14 13:23:52 -070075
76subdirs = ["tests"]