blob: 8b4333342dab1bc0aaf6fb6fa217efd2add423c5 [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",
Fan Xu18d90ea2018-11-06 15:46:44 -080037 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070038 "libhidlbase",
39 "libhidltransport",
40 "libhwbinder",
41 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070042 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070043 "libutils",
44 ],
45 export_include_dirs: [
46 "include"
47 ],
48}
49
50cc_binary {
51 name: "android.frameworks.bufferhub@1.0-service",
52 relative_install_path: "hw",
53 srcs: [
54 "main_bufferhub.cpp"
55 ],
Fan Xu93c94902018-11-01 12:22:05 -070056 header_libs: [
57 "libbufferhub_headers",
58 "libdvr_headers",
59 "libnativewindow_headers",
60 "libpdx_headers",
61 ],
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070062 shared_libs: [
63 "android.frameworks.bufferhub@1.0",
64 "libbufferhubservice",
Fan Xu18d90ea2018-11-06 15:46:44 -080065 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070066 "libhidltransport",
67 "libhwbinder",
68 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070069 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070070 "libutils",
71 ],
72 cflags: [
73 "-Wall",
74 "-Werror",
75 "-Wextra",
76 ],
77 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
78 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
79}