blob: d03d833fd7d85bdeb62488e1372ee4bfa3d1c094 [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: [
25 "BufferHubService.cpp",
Fan Xu574a6852018-11-02 13:22:42 -070026 "BufferNode.cpp",
27 ],
28 header_libs: [
29 "libbufferhub_headers",
30 "libdvr_headers",
31 "libnativewindow_headers",
32 "libpdx_headers",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070033 ],
34 shared_libs: [
35 "android.frameworks.bufferhub@1.0",
36 "libhidlbase",
37 "libhidltransport",
38 "libhwbinder",
39 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070040 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070041 "libutils",
42 ],
43 export_include_dirs: [
44 "include"
45 ],
46}
47
48cc_binary {
49 name: "android.frameworks.bufferhub@1.0-service",
50 relative_install_path: "hw",
51 srcs: [
52 "main_bufferhub.cpp"
53 ],
54 shared_libs: [
55 "android.frameworks.bufferhub@1.0",
56 "libbufferhubservice",
57 "libhidltransport",
58 "libhwbinder",
59 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070060 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070061 "libutils",
62 ],
63 cflags: [
64 "-Wall",
65 "-Werror",
66 "-Wextra",
67 ],
68 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
69 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
70}