• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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        "-DLOG_TAG=\"libbufferhubservice\"",
21        "-Wall",
22        "-Werror",
23        "-Wextra",
24    ],
25    srcs: [
26        "BufferClient.cpp",
27        "BufferHubIdGenerator.cpp",
28        "BufferHubService.cpp",
29        "BufferNode.cpp",
30    ],
31    header_libs: [
32        "libdvr_headers",
33        "libnativewindow_headers",
34    ],
35    shared_libs: [
36        "android.frameworks.bufferhub@1.0",
37        "libcrypto",
38        "libcutils",
39        "libhidlbase",
40        "libhidltransport",
41        "libhwbinder",
42        "liblog",
43        "libui",
44        "libutils",
45    ],
46    export_include_dirs: [
47        "include"
48    ],
49}
50
51cc_binary {
52    name: "android.frameworks.bufferhub@1.0-service",
53    relative_install_path: "hw",
54    srcs: [
55        "main_bufferhub.cpp"
56    ],
57    header_libs: [
58        "libdvr_headers",
59        "libnativewindow_headers",
60    ],
61    shared_libs: [
62        "android.frameworks.bufferhub@1.0",
63        "libbufferhubservice",
64        "libcrypto",
65        "libcutils",
66        "libhidlbase",
67        "libhidltransport",
68        "libhwbinder",
69        "liblog",
70        "libui",
71        "libutils",
72    ],
73    cflags: [
74        "-DLOG_TAG=\"bufferhub\"",
75        "-Wall",
76        "-Werror",
77        "-Wextra",
78    ],
79    init_rc: ["android.frameworks.bufferhub@1.0-service.rc"],
80    vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"],
81}
82