1LOCAL_PATH:= $(call my-dir)
2
3##################################
4include $(CLEAR_VARS)
5
6LOCAL_SRC_FILES := \
7    evs_app.cpp \
8    EvsStateControl.cpp \
9    RenderBase.cpp \
10    RenderDirectView.cpp \
11    RenderTopView.cpp \
12    ConfigManager.cpp \
13    glError.cpp \
14    shader.cpp \
15    TexWrapper.cpp \
16    VideoTex.cpp \
17    StreamHandler.cpp \
18    WindowSurface.cpp \
19    FormatConvert.cpp \
20    RenderPixelCopy.cpp
21
22LOCAL_SHARED_LIBRARIES := \
23    libbinder \
24    libcutils \
25    liblog \
26    libutils \
27    libui \
28    libgui \
29    libhidlbase \
30    libhidltransport \
31    libEGL \
32    libGLESv2 \
33    libhardware \
34    libpng \
35    android.hardware.automotive.evs@1.0 \
36    android.hardware.automotive.vehicle@2.0 \
37
38LOCAL_STATIC_LIBRARIES := \
39    libmath \
40    libjsoncpp \
41
42LOCAL_STRIP_MODULE := keep_symbols
43
44LOCAL_INIT_RC := evs_app.rc
45
46LOCAL_MODULE:= evs_app
47LOCAL_MODULE_TAGS := optional
48
49LOCAL_CFLAGS += -DLOG_TAG=\"EvsApp\"
50LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
51LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
52
53include $(BUILD_EXECUTABLE)
54
55
56include $(CLEAR_VARS)
57LOCAL_MODULE := config.json
58LOCAL_MODULE_CLASS := ETC
59LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/automotive/evs
60LOCAL_SRC_FILES := $(LOCAL_MODULE)
61include $(BUILD_PREBUILT)
62
63include $(CLEAR_VARS)
64LOCAL_MODULE := CarFromTop.png
65LOCAL_MODULE_CLASS := ETC
66LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/automotive/evs
67LOCAL_SRC_FILES := $(LOCAL_MODULE)
68include $(BUILD_PREBUILT)
69
70include $(CLEAR_VARS)
71LOCAL_MODULE := LabeledChecker.png
72LOCAL_MODULE_CLASS := ETC
73LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/automotive/evs
74LOCAL_SRC_FILES := $(LOCAL_MODULE)
75include $(BUILD_PREBUILT)
76
77include $(CLEAR_VARS)
78LOCAL_MODULE := evs_app_default_resources
79LOCAL_REQUIRED_MODULES := \
80    config.json \
81    CarFromTop.png \
82    LabeledChecker.png
83include $(BUILD_PHONY_PACKAGE)