blob: ca65e02538cfa3905fed92cf722f1274fa4f7acd [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 ],
55 shared_libs: [
56 "android.frameworks.bufferhub@1.0",
57 "libbufferhubservice",
58 "libhidltransport",
59 "libhwbinder",
60 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070061 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070062 "libutils",
63 ],
64 cflags: [
65 "-Wall",
66 "-Werror",
67 "-Wextra",
68 ],
69 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
70 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
71}