blob: 72d210cbb000773d7bfd1b3ae0cd1061bdf54d90 [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: [
Tianyu Jiangde43a5b2018-11-20 11:22:52 -080020 "-DLOG_TAG=\"libbufferhubservice\"",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070021 "-Wall",
22 "-Werror",
23 "-Wextra",
24 ],
25 srcs: [
Fan Xuca70b7b2018-10-31 13:20:12 -070026 "BufferClient.cpp",
Fan Xu1c16df52018-11-19 16:27:27 -080027 "BufferHubIdGenerator.cpp",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070028 "BufferHubService.cpp",
Fan Xu574a6852018-11-02 13:22:42 -070029 "BufferNode.cpp",
30 ],
31 header_libs: [
Fan Xu574a6852018-11-02 13:22:42 -070032 "libdvr_headers",
33 "libnativewindow_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: [
Fan Xu93c94902018-11-01 12:22:05 -070057 "libdvr_headers",
58 "libnativewindow_headers",
Fan Xu93c94902018-11-01 12:22:05 -070059 ],
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070060 shared_libs: [
61 "android.frameworks.bufferhub@1.0",
62 "libbufferhubservice",
Fan Xu18d90ea2018-11-06 15:46:44 -080063 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070064 "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: [
Tianyu Jiangde43a5b2018-11-20 11:22:52 -080071 "-DLOG_TAG=\"bufferhub\"",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070072 "-Wall",
73 "-Werror",
74 "-Wextra",
75 ],
76 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
77 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
78}