blob: b747dbca4b11ef428e94aa16483f737a85696dc0 [file] [log] [blame]
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -07001//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_library_shared {
18 name: "libbufferhubservice",
19 cflags: [
Tianyu Jiangde43a5b2018-11-20 11:22:52 -080020 "-DLOG_TAG=\"libbufferhubservice\"",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070021 "-Wall",
22 "-Werror",
23 "-Wextra",
24 ],
25 srcs: [
Fan Xuca70b7b2018-10-31 13:20:12 -070026 "BufferClient.cpp",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070027 "BufferHubService.cpp",
Fan Xu574a6852018-11-02 13:22:42 -070028 "BufferNode.cpp",
Fan Xuffde7862018-11-08 16:29:13 -080029 "UniqueIdGenerator.cpp",
Fan Xu574a6852018-11-02 13:22:42 -070030 ],
31 header_libs: [
32 "libbufferhub_headers",
33 "libdvr_headers",
34 "libnativewindow_headers",
35 "libpdx_headers",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070036 ],
37 shared_libs: [
38 "android.frameworks.bufferhub@1.0",
Fan Xu18d90ea2018-11-06 15:46:44 -080039 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070040 "libhidlbase",
41 "libhidltransport",
42 "libhwbinder",
43 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070044 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070045 "libutils",
46 ],
47 export_include_dirs: [
48 "include"
49 ],
50}
51
52cc_binary {
53 name: "android.frameworks.bufferhub@1.0-service",
54 relative_install_path: "hw",
55 srcs: [
56 "main_bufferhub.cpp"
57 ],
Fan Xu93c94902018-11-01 12:22:05 -070058 header_libs: [
59 "libbufferhub_headers",
60 "libdvr_headers",
61 "libnativewindow_headers",
62 "libpdx_headers",
63 ],
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070064 shared_libs: [
65 "android.frameworks.bufferhub@1.0",
66 "libbufferhubservice",
Fan Xu18d90ea2018-11-06 15:46:44 -080067 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070068 "libhidltransport",
69 "libhwbinder",
70 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070071 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070072 "libutils",
73 ],
74 cflags: [
Tianyu Jiangde43a5b2018-11-20 11:22:52 -080075 "-DLOG_TAG=\"bufferhub\"",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070076 "-Wall",
77 "-Werror",
78 "-Wextra",
79 ],
80 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
81 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
82}