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 24#AM_CPPFLAGS += "-include stdint.h" 25AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" 26AM_CPPFLAGS += "-Dstrlcat=g_strlcat" 27AM_CPPFLAGS += "-std=c++11" 28AM_CPPFLAGS += "-DHAVE_ANDROID_OS" 29AM_CPPFLAGS += -DSYS_IOCTL 30 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 MASTER_SIDE_CP_TARGET_LIST 48AM_CPPFLAGS += -DMASTER_SIDE_CP 49endif 50 51AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/ 52AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/vdec/inc/ 53AM_CPPFLAGS += -I$(top_srcdir)/libc2dcolorconvert/ 54AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/ 55AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/ 56 57c_sources := src/frameparser.cpp 58c_sources += src/h264_utils.cpp 59c_sources += src/ts_parser.cpp 60c_sources += src/mp4_utils.cpp 61c_sources += src/hevc_utils.cpp 62c_sources += src/omx_vdec_v4l2.cpp 63 64lib_LTLIBRARIES = libOmxVdec.la 65libOmxVdec_la_SOURCES = $(c_sources) 66libOmxVdec_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 67libOmxVdec_la_CFLAGS += ../libc2d2colorconvert/libc2dcolorconvert.la 68libOmxVdec_la_LDFLAGS = -lglib-2.0 -shared -version-info 0 69