Home | History | Annotate | Download | only in vdec
      1 AM_CFLAGS = -Wall
      2 AM_CFLAGS += -Wundef
      3 AM_CFLAGS += -Wstrict-prototypes
      4 AM_CFLAGS += -Wno-trigraphs
      5 AM_CFLAGS += -g -O3
      6 
      7 AM_CPPFLAGS := -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\)
      8 AM_CPPFLAGS += -D__align=__alignx
      9 AM_CPPFLAGS += -Dinline=__inline
     10 AM_CPPFLAGS += -g -O3
     11 AM_CPPFLAGS += -DIMAGE_APPS_PROC
     12 AM_CPPFLAGS += -D_ANDROID_
     13 AM_CPPFLAGS += -DCDECL
     14 AM_CPPFLAGS += -DT_ARM
     15 AM_CPPFLAGS += -DNO_ARM_CLZ
     16 AM_CPPFLAGS += -UENABLE_DEBUG_LOW
     17 AM_CPPFLAGS += -UENABLE_DEBUG_HIGH
     18 AM_CPPFLAGS += -DENABLE_DEBUG_ERROR
     19 AM_CPPFLAGS += -UINPUT_BUFFER_LOG
     20 AM_CPPFLAGS += -UOUTPUT_BUFFER_LOG
     21 AM_CPPFLAGS += -Wno-parentheses
     22 AM_CPPFLAGS += -D_ANDROID_ICS_
     23 AM_CPPFLAGS += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     24 #AM_CPPFLAGS += "-include stdint.h"
     25 AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy"
     26 AM_CPPFLAGS += "-Dstrlcat=g_strlcat"
     27 AM_CPPFLAGS += "-std=c++11"
     28 AM_CPPFLAGS += "-DHAVE_ANDROID_OS"
     29 AM_CPPFLAGS += -DSYS_IOCTL
     30 
     31 if USE_GLIB
     32 AM_CPPFLAGS += -D_USE_GLIB_
     33 endif
     34 
     35 if TARGET_MSM8610
     36 AM_CPPFLAGS += -DVENUS_HEVC
     37 endif
     38 
     39 if TARGETS_THAT_SUPPORT_UBWC
     40 AM_CPPFLAGS += -D_UBWC_
     41 endif
     42 
     43 if TARGET_USES_ION
     44 AM_CPPFLAGS += -DUSE_ION
     45 endif
     46 
     47 if MASTER_SIDE_CP_TARGET_LIST
     48 AM_CPPFLAGS += -DMASTER_SIDE_CP
     49 endif
     50 
     51 AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/
     52 AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/vdec/inc/
     53 AM_CPPFLAGS += -I$(top_srcdir)/libc2dcolorconvert/
     54 AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/
     55 AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/
     56 
     57 c_sources         := src/frameparser.cpp
     58 c_sources         += src/h264_utils.cpp
     59 c_sources         += src/ts_parser.cpp
     60 c_sources         += src/mp4_utils.cpp
     61 c_sources         += src/hevc_utils.cpp
     62 c_sources         += src/omx_vdec_v4l2.cpp
     63 
     64 lib_LTLIBRARIES = libOmxVdec.la
     65 libOmxVdec_la_SOURCES = $(c_sources)
     66 libOmxVdec_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
     67 libOmxVdec_la_CFLAGS += ../libc2d2colorconvert/libc2dcolorconvert.la
     68 libOmxVdec_la_LDFLAGS = -lglib-2.0 -shared -version-info 0
     69