blob: 871561f17180d117ee2cf03555690e42e9d61ee3 [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",
28 ],
29 header_libs: [
30 "libbufferhub_headers",
31 "libdvr_headers",
32 "libnativewindow_headers",
33 "libpdx_headers",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070034 ],
35 shared_libs: [
36 "android.frameworks.bufferhub@1.0",
37 "libhidlbase",
38 "libhidltransport",
39 "libhwbinder",
40 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070041 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070042 "libutils",
43 ],
44 export_include_dirs: [
45 "include"
46 ],
47}
48
49cc_binary {
50 name: "android.frameworks.bufferhub@1.0-service",
51 relative_install_path: "hw",
52 srcs: [
53 "main_bufferhub.cpp"
54 ],
Fan Xu93c94902018-11-01 12:22:05 -070055 header_libs: [
56 "libbufferhub_headers",
57 "libdvr_headers",
58 "libnativewindow_headers",
59 "libpdx_headers",
60 ],
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070061 shared_libs: [
62 "android.frameworks.bufferhub@1.0",
63 "libbufferhubservice",
64 "libhidltransport",
65 "libhwbinder",
66 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070067 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070068 "libutils",
69 ],
70 cflags: [
71 "-Wall",
72 "-Werror",
73 "-Wextra",
74 ],
75 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
76 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
77}