blob: 28a7501e0a1893e854dcfc674e9ce55d6dafbb69 [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: [
20 "-Wall",
21 "-Werror",
22 "-Wextra",
23 ],
24 srcs: [
Fan Xuca70b7b2018-10-31 13:20:12 -070025 "BufferClient.cpp",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070026 "BufferHubService.cpp",
Fan Xu574a6852018-11-02 13:22:42 -070027 "BufferNode.cpp",
Fan Xuffde7862018-11-08 16:29:13 -080028 "UniqueIdGenerator.cpp",
Fan Xu574a6852018-11-02 13:22:42 -070029 ],
30 header_libs: [
31 "libbufferhub_headers",
32 "libdvr_headers",
33 "libnativewindow_headers",
34 "libpdx_headers",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070035 ],
36 shared_libs: [
37 "android.frameworks.bufferhub@1.0",
Fan Xu18d90ea2018-11-06 15:46:44 -080038 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070039 "libhidlbase",
40 "libhidltransport",
41 "libhwbinder",
42 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070043 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070044 "libutils",
45 ],
46 export_include_dirs: [
47 "include"
48 ],
49}
50
51cc_binary {
52 name: "android.frameworks.bufferhub@1.0-service",
53 relative_install_path: "hw",
54 srcs: [
55 "main_bufferhub.cpp"
56 ],
Fan Xu93c94902018-11-01 12:22:05 -070057 header_libs: [
58 "libbufferhub_headers",
59 "libdvr_headers",
60 "libnativewindow_headers",
61 "libpdx_headers",
62 ],
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070063 shared_libs: [
64 "android.frameworks.bufferhub@1.0",
65 "libbufferhubservice",
Fan Xu18d90ea2018-11-06 15:46:44 -080066 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070067 "libhidltransport",
68 "libhwbinder",
69 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070070 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070071 "libutils",
72 ],
73 cflags: [
74 "-Wall",
75 "-Werror",
76 "-Wextra",
77 ],
78 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
79 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
80}