1// Copyright (C) 2022 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19vintf_fragment {
20    name: "manifest_cardisplayproxyd.xml",
21    src: "manifest_cardisplayproxyd.xml",
22}
23
24cc_binary {
25    name: "cardisplayproxyd",
26    srcs: ["**/*.cpp"],
27    cflags: [
28        "-DLOG_TAG=\"cardisplayproxyd\"",
29        "-Wall",
30        "-Wno-missing-field-initializers",
31        "-Werror",
32        "-Wno-unused-variable",
33        "-Wunused-parameter",
34    ],
35    local_include_dirs: ["include"],
36    shared_libs: [
37        "android.frameworks.automotive.display-V2-ndk",
38        "[email protected]",
39        "[email protected]",
40        "[email protected]",
41        "libcutils",
42        "libbase",
43        "libbinder",
44        "libbinder_ndk",
45        "libgui",
46        "libhidlbase",
47        "libnativewindow",
48        "libui",
49        "libutils",
50    ],
51    static_libs: ["libaidlcommonsupport"],
52    init_rc: ["cardisplayproxyd.rc"],
53    vintf_fragment_modules: ["manifest_cardisplayproxyd.xml"],
54}
55