1// Copyright (C) 2021 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
19cc_binary {
20    name: "android.hardware.automotive.evs-default",
21    defaults: ["android.hardware.graphics.common-ndk_static"],
22    vendor: true,
23    relative_install_path: "hw",
24    srcs: [
25        ":libgui_frame_event_aidl",
26        "src/*.cpp",
27    ],
28    shared_libs: [
29        "android.hardware.graphics.bufferqueue@1.0",
30        "android.hardware.graphics.bufferqueue@2.0",
31        "android.hidl.token@1.0-utils",
32        "libEGL",
33        "libGLESv2",
34        "libbase",
35        "libbinder_ndk",
36        "libbufferqueueconverter",
37        "libcamera_metadata",
38        "libhardware_legacy",
39        "libhidlbase",
40        "liblog",
41        "libnativewindow",
42        "libtinyxml2",
43        "libui",
44        "libutils",
45        "libyuv",
46    ],
47    static_libs: [
48        "android.frameworks.automotive.display-V2-ndk",
49        "android.hardware.automotive.evs-V2-ndk",
50        "android.hardware.common-V2-ndk",
51        "libaidlcommonsupport",
52        "libcutils",
53    ],
54    header_libs: [
55        "libgui_aidl_headers",
56    ],
57    local_include_dirs: [
58        "include",
59    ],
60    include_dirs: [
61        "frameworks/native/include/",
62    ],
63    cflags: [
64        "-DLOG_TAG=\"EvsDriver\"",
65        "-DGL_GLEXT_PROTOTYPES",
66        "-DEGL_EGLEXT_PROTOTYPES",
67        "-Wall",
68        "-Wextra",
69        "-Werror",
70        "-Wthread-safety",
71    ],
72    init_rc: [
73        "android.hardware.automotive.evs-default.rc",
74    ],
75    required: [
76        "evs_aidl_hal_configuration.dtd",
77        "evs_aidl_hal_configuration.xml",
78    ],
79    vintf_fragments: [
80        "manifest_android.hardware.automotive.evs-default.xml",
81    ],
82}
83
84prebuilt_etc {
85    name: "evs_aidl_hal_configuration.dtd",
86    soc_specific: true,
87    src: "resources/evs_configuration.dtd",
88    sub_dir: "automotive/evs",
89}
90
91prebuilt_etc {
92    name: "evs_aidl_hal_configuration.xml",
93    soc_specific: true,
94    src: "resources/evs_configuration_default.xml",
95    sub_dir: "automotive/evs",
96}
97