blob: c35ddd42e2b1f6bd2d6bf5df71c98506ce0e66ea [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' Cai9004b8c2018-10-03 18:52:23 -070019 "libgtest_prod",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070020 "libgui",
Fan Xucfd12742018-09-14 13:23:52 -070021 "liblog",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070022 "libpdx_default_transport",
Fan Xucfd12742018-09-14 13:23:52 -070023 "libsync",
24 "libui",
25 "libutils",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070026]
27
Fan Xucfd12742018-09-14 13:23:52 -070028cc_library_static {
29 name: "libbufferhubd",
30 srcs: [
Fan Xucfd12742018-09-14 13:23:52 -070031 "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",
Fan Xuf35719a2018-10-10 11:38:31 -070037 "IBufferHub.cpp",
Fan Xucfd12742018-09-14 13:23:52 -070038 "producer_channel.cpp",
39 "producer_queue_channel.cpp",
40 ],
41 cflags: [
42 "-DLOG_TAG=\"libbufferhubd\"",
43 "-DTRACE=0",
44 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
45 ],
46 export_include_dirs: ["include"],
47 header_libs: ["libdvr_headers"],
48 shared_libs: sharedLibraries,
49 static_libs: [
50 "libbufferhub",
51 ],
Jiwen 'Steve' Cai9f7b7f32018-10-10 15:05:01 -070052
53 // TODO(b/117568153): Temporarily opt out using libcrt.
54 no_libcrt: true,
Fan Xucfd12742018-09-14 13:23:52 -070055}
56
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070057cc_binary {
Fan Xucfd12742018-09-14 13:23:52 -070058 srcs: ["bufferhubd.cpp"],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070059 cflags: [
60 "-DLOG_TAG=\"bufferhubd\"",
61 "-DTRACE=0",
62 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
63 ],
Fan Xucfd12742018-09-14 13:23:52 -070064 header_libs: ["libdvr_headers"],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070065 shared_libs: sharedLibraries,
Fan Xucfd12742018-09-14 13:23:52 -070066 static_libs: [
67 "libbufferhub",
68 "libbufferhubd",
69 "libperformance",
70 ],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070071 name: "bufferhubd",
72 init_rc: ["bufferhubd.rc"],
73}
Fan Xucfd12742018-09-14 13:23:52 -070074
75subdirs = ["tests"]