1// Copyright (C) 2019 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//
15//
16
17//#################################
18cc_library_shared {
19    name: "libevssupport",
20
21    srcs: [
22        "RenderBase.cpp",
23        "RenderDirectView.cpp",
24        "ConfigManager.cpp",
25        "glError.cpp",
26        "shader.cpp",
27        "TexWrapper.cpp",
28        "VideoTex.cpp",
29        "StreamHandler.cpp",
30        "ResourceManager.cpp",
31        "FormatConvert.cpp",
32        "DisplayUseCase.cpp",
33        "AnalyzeUseCase.cpp",
34        "Utils.cpp",
35    ],
36
37    shared_libs: [
38        "libcutils",
39        "liblog",
40        "libutils",
41        "libui",
42        "libhidlbase",
43        "libEGL",
44        "libGLESv2",
45        "libhardware",
46        "libpng",
47        "android.hardware.automotive.evs@1.0",
48    ],
49
50    static_libs: [
51        "libmath",
52        "libjsoncpp",
53    ],
54
55    required: [
56        "camera_config.json",
57    ],
58
59    cflags: ["-DLOG_TAG=\"libevssupport\""] + [
60        "-DGL_GLEXT_PROTOTYPES",
61        "-DEGL_EGLEXT_PROTOTYPES",
62    ] + [
63        "-Wall",
64        "-Werror",
65        "-Wunused",
66        "-Wunreachable-code",
67    ],
68}
69
70prebuilt_etc {
71    name: "camera_config.json",
72
73    src: "config.json",
74    sub_dir: "automotive/evs_support_lib",
75}
76
77