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_binary {
19    name: "evs_app",
20
21    srcs: [
22        "evs_app.cpp",
23        "EvsStateControl.cpp",
24        "RenderBase.cpp",
25        "RenderDirectView.cpp",
26        "RenderTopView.cpp",
27        "ConfigManager.cpp",
28        "glError.cpp",
29        "shader.cpp",
30        "TexWrapper.cpp",
31        "VideoTex.cpp",
32        "StreamHandler.cpp",
33        "FormatConvert.cpp",
34        "RenderPixelCopy.cpp",
35    ],
36
37    shared_libs: [
38        "libbase",
39        "libbinder",
40        "libcutils",
41        "libutils",
42        "libui",
43        "libhidlbase",
44        "libEGL",
45        "libGLESv2",
46        "libhardware",
47        "libpng",
48        "libcamera_metadata",
49        "android.hardware.camera.device@3.2",
50        "android.hardware.automotive.evs@1.0",
51        "android.hardware.automotive.evs@1.1",
52        "android.hardware.automotive.vehicle@2.0",
53    ],
54
55    static_libs: [
56        "libmath",
57        "libjsoncpp",
58    ],
59
60    required: [
61        "config.json",
62        "CarFromTop.png",
63        "LabeledChecker.png",
64    ],
65
66    init_rc: ["evs_app.rc"],
67
68    cflags: ["-DLOG_TAG=\"EvsApp\""] + [
69        "-DGL_GLEXT_PROTOTYPES",
70        "-DEGL_EGLEXT_PROTOTYPES",
71    ] + [
72        "-Wall",
73        "-Werror",
74        "-Wunused",
75        "-Wunreachable-code",
76    ],
77
78}
79
80prebuilt_etc {
81    name: "config.json",
82
83    src: "config.json",
84    sub_dir: "automotive/evs",
85
86}
87
88prebuilt_etc {
89    name: "CarFromTop.png",
90
91    src: "CarFromTop.png",
92    sub_dir: "automotive/evs",
93
94}
95
96prebuilt_etc {
97    name: "LabeledChecker.png",
98
99    src: "LabeledChecker.png",
100    sub_dir: "automotive/evs",
101
102}
103