1AM_CFLAGS = -Wall
2AM_CFLAGS += -Wundef
3AM_CFLAGS += -Wstrict-prototypes
4AM_CFLAGS += -Wno-trigraphs
5AM_CFLAGS += -g -O3
6
7AM_CPPFLAGS := -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\)
8AM_CPPFLAGS += -D__align=__alignx
9AM_CPPFLAGS += -Dinline=__inline
10AM_CPPFLAGS += -g -O3
11AM_CPPFLAGS += -DIMAGE_APPS_PROC
12AM_CPPFLAGS += -D_ANDROID_
13AM_CPPFLAGS += -DCDECL
14AM_CPPFLAGS += -DT_ARM
15AM_CPPFLAGS += -DNO_ARM_CLZ
16AM_CPPFLAGS += -UENABLE_DEBUG_LOW
17AM_CPPFLAGS += -UENABLE_DEBUG_HIGH
18AM_CPPFLAGS += -DENABLE_DEBUG_ERROR
19AM_CPPFLAGS += -UINPUT_BUFFER_LOG
20AM_CPPFLAGS += -UOUTPUT_BUFFER_LOG
21AM_CPPFLAGS += -Wno-parentheses
22AM_CPPFLAGS += -D_ANDROID_ICS_
23AM_CPPFLAGS += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
24AM_CPPFLAGS += -DNATIVE_BASE_DISABLE
25#AM_CPPFLAGS += "-include stdint.h"
26AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy"
27AM_CPPFLAGS += "-Dstrlcat=g_strlcat"
28AM_CPPFLAGS += "-std=c++11"
29AM_CPPFLAGS += "-DHAVE_ANDROID_OS"
30AM_CPPFLAGS += -DSYS_IOCTL
31if USE_GLIB
32AM_CPPFLAGS += -D_USE_GLIB_
33endif
34
35if TARGET_MSM8610
36AM_CPPFLAGS += -DVENUS_HEVC
37endif
38
39if TARGETS_THAT_SUPPORT_UBWC
40AM_CPPFLAGS += -D_UBWC_
41endif
42
43if TARGET_USES_ION
44AM_CPPFLAGS += -DUSE_ION
45endif
46
47if TARGET_USES_GBM
48AM_CPPFLAGS += -DUSE_GBM
49endif
50
51if MASTER_SIDE_CP_TARGET_LIST
52AM_CPPFLAGS += -DMASTER_SIDE_CP
53endif
54
55AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/
56AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/vdec/inc/
57AM_CPPFLAGS += -I$(top_srcdir)/libc2dcolorconvert/
58AM_CPPFLAGS += -I$(top_srcdir)/libplatformconfig/
59AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/
60AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/
61
62AM_CPPFLAGS += -I$(WORKSPACE)/graphics/libdrm/freedreno/kgsl/
63AM_CPPFLAGS += -I$(WORKSPACE)/display/display-hal/gralloc/
64AM_CPPFLAGS += -I$(WORKSPACE)/display/display-hal/libqdutils/
65AM_CPPFLAGS += -I$(WORKSPACE)/hardware/libhardware/include/
66AM_CPPFLAGS += -I${WORKSPACE}/frameworks/native/include/
67c_sources = src/ts_parser.cpp
68c_sources += src/omx_vdec_v4l2.cpp
69c_sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_common.cpp
70c_sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_vendor_extensions.cpp
71
72lib_LTLIBRARIES = libOmxVdec.la
73libOmxVdec_la_SOURCES = $(c_sources)
74libOmxVdec_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
75libOmxVdec_la_LDFLAGS = -module -shared -avoid-version
76libOmxVdec_la_LDFLAGS += -llog  -lcutils -lglib-2.0 -lion -lqdMetaData
77libOmxVdec_la_LDFLAGS += -L$(top_builddir)/libc2dcolorconvert  -L$(top_builddir)/libplatformconfig
78libOmxVdec_la_LDFLAGS += -lc2dcolorconvert -lplatformconfig
79