blob: 4e24a646915de0f39a4fbdb1adfbccced7322942 [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",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070017 "libcutils",
Jiwen 'Steve' Cai9004b8c2018-10-03 18:52:23 -070018 "libgtest_prod",
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: [
Fan Xucfd12742018-09-14 13:23:52 -070030 "buffer_hub.cpp",
Fan Xucfd12742018-09-14 13:23:52 -070031 "consumer_channel.cpp",
32 "consumer_queue_channel.cpp",
33 "producer_channel.cpp",
34 "producer_queue_channel.cpp",
35 ],
36 cflags: [
37 "-DLOG_TAG=\"libbufferhubd\"",
38 "-DTRACE=0",
39 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
40 ],
41 export_include_dirs: ["include"],
Fan Xu9f9a4612018-12-03 16:32:13 -080042 header_libs: ["libdvr_headers"],
Fan Xucfd12742018-09-14 13:23:52 -070043 shared_libs: sharedLibraries,
44 static_libs: [
45 "libbufferhub",
46 ],
Jiwen 'Steve' Cai9f7b7f32018-10-10 15:05:01 -070047
48 // TODO(b/117568153): Temporarily opt out using libcrt.
49 no_libcrt: true,
Fan Xucfd12742018-09-14 13:23:52 -070050}
51
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070052cc_binary {
Fan Xucfd12742018-09-14 13:23:52 -070053 srcs: ["bufferhubd.cpp"],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070054 cflags: [
55 "-DLOG_TAG=\"bufferhubd\"",
56 "-DTRACE=0",
57 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
58 ],
Fan Xucfd12742018-09-14 13:23:52 -070059 header_libs: ["libdvr_headers"],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070060 shared_libs: sharedLibraries,
Fan Xucfd12742018-09-14 13:23:52 -070061 static_libs: [
62 "libbufferhub",
63 "libbufferhubd",
64 "libperformance",
65 ],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070066 name: "bufferhubd",
67 init_rc: ["bufferhubd.rc"],
68}