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 += -D_MSM8974_ 24AM_CPPFLAGS += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT 25AM_CPPFLAGS += -DMAX_RES_1080P 26AM_CPPFLAGS += -DMAX_RES_1080P_EBI 27#AM_CPPFLAGS += "-include stdint.h" 28AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" 29AM_CPPFLAGS += "-Dstrlcat=g_strlcat" 30AM_CPPFLAGS += "-std=c++11" 31AM_CPPFLAGS += "-DHAVE_ANDROID_OS" 32AM_CPPFLAGS += -DSYS_IOCTL 33AM_CPPFLAGS += -Wno-multichar 34 35if USE_GLIB 36AM_CPPFLAGS += -D_USE_GLIB_ 37endif 38 39if TARGET_MSM8610 40AM_CPPFLAGS += -DVENUS_HEVC 41endif 42 43if TARGETS_THAT_SUPPORT_UBWC 44AM_CPPFLAGS += -D_UBWC_ 45endif 46 47if TARGET_USES_ION 48AM_CPPFLAGS += -DUSE_ION 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)/mm-core/inc/ 59AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/ 60 61c_sources := src/frameparser.cpp 62c_sources += src/h264_utils.cpp 63c_sources += src/ts_parser.cpp 64c_sources += src/mp4_utils.cpp 65c_sources += src/hevc_utils.cpp 66c_sources += src/omx_vdec_v4l2.cpp 67c_sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/extra_data_handler.cpp 68c_sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_color_converter.cpp 69 70lib_LTLIBRARIES = libOmxVdec.la 71libOmxVdec_la_SOURCES = $(c_sources) 72libOmxVdec_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 73libOmxVdec_la_CFLAGS += ../libc2d2colorconvert/libc2dcolorconvert.la 74libOmxVdec_la_LDFLAGS = -llog -lutils -lbinder -lcutils -ldl -lqdMetaData -lglib-2.0 -shared -version-info 0 75 76