blob: 2bb6aef3a5320c0d9e245b6f63b64d7e39fbf139 [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 Xu55b26a62018-12-19 11:03:14 -080037 "libcrypto",
Fan Xu18d90ea2018-11-06 15:46:44 -080038 "libcutils",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070039 "libhidlbase",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070040 "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: [
Fan Xu93c94902018-11-01 12:22:05 -070056 "libdvr_headers",
57 "libnativewindow_headers",
Fan Xu93c94902018-11-01 12:22:05 -070058 ],
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070059 shared_libs: [
60 "android.frameworks.bufferhub@1.0",
61 "libbufferhubservice",
Fan Xu55b26a62018-12-19 11:03:14 -080062 "libcrypto",
Fan Xu18d90ea2018-11-06 15:46:44 -080063 "libcutils",
Steven Moreland35b98282019-06-13 18:25:19 -070064 "libhidlbase",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070065 "liblog",
Fan Xu574a6852018-11-02 13:22:42 -070066 "libui",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070067 "libutils",
68 ],
69 cflags: [
Tianyu Jiangde43a5b2018-11-20 11:22:52 -080070 "-DLOG_TAG=\"bufferhub\"",
Jiwen 'Steve' Caid9f2abe2018-10-20 17:03:13 -070071 "-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}