blob: df6fd0df78984e64abc64601f516f598c6cd149e [file] [log] [blame]
Changyeon Joc7deb562019-07-23 10:40:04 -07001// 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: [
Changyeon Joffdf3db2020-03-06 15:23:02 -080038 "libbase",
Changyeon Joc7deb562019-07-23 10:40:04 -070039 "libbinder",
40 "libcutils",
Changyeon Joc7deb562019-07-23 10:40:04 -070041 "libutils",
42 "libui",
43 "libhidlbase",
Changyeon Joc7deb562019-07-23 10:40:04 -070044 "libEGL",
45 "libGLESv2",
46 "libhardware",
47 "libpng",
Changyeon Joaab96aa2019-10-12 05:24:15 -070048 "libcamera_metadata",
49 "android.hardware.camera.device@3.2",
Changyeon Joc7deb562019-07-23 10:40:04 -070050 "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
Changyeon Joc7deb562019-07-23 10:40:04 -070066 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}