blob: a9af22fd83ce408f7fc1d0235d7b86e711f707e8 [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",
26 ],
27 shared_libs: [
28 "android.frameworks.bufferhub@1.0",
29 "libhidlbase",
30 "libhidltransport",
31 "libhwbinder",
32 "liblog",
33 "libutils",
34 ],
35 export_include_dirs: [
36 "include"
37 ],
38}
39
40cc_binary {
41 name: "android.frameworks.bufferhub@1.0-service",
42 relative_install_path: "hw",
43 srcs: [
44 "main_bufferhub.cpp"
45 ],
46 shared_libs: [
47 "android.frameworks.bufferhub@1.0",
48 "libbufferhubservice",
49 "libhidltransport",
50 "libhwbinder",
51 "liblog",
52 "libutils",
53 ],
54 cflags: [
55 "-Wall",
56 "-Werror",
57 "-Wextra",
58 ],
59 init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
60 vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
61}