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 26if TARGET_HYPERVISOR 27AM_CPPFLAGS += -DHYPERVISOR 28AM_CPPFLAGS += -I$(top_srcdir)/hypv-intercept/ 29endif 30#AM_CPPFLAGS += "-include stdint.h" 31AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" 32AM_CPPFLAGS += "-Dstrlcat=g_strlcat" 33AM_CPPFLAGS += "-std=c++11" 34AM_CPPFLAGS += "-DHAVE_ANDROID_OS" 35AM_CPPFLAGS += -DSYS_IOCTL 36if USE_GLIB 37AM_CPPFLAGS += -D_USE_GLIB_ 38endif 39 40if TARGET_MSM8610 41AM_CPPFLAGS += -DVENUS_HEVC 42endif 43 44if TARGETS_THAT_SUPPORT_UBWC 45AM_CPPFLAGS += -D_UBWC_ 46endif 47 48if TARGET_USES_ION 49AM_CPPFLAGS += -DUSE_ION 50endif 51 52if TARGET_USES_GBM 53AM_CPPFLAGS += -DUSE_GBM 54endif 55 56if MASTER_SIDE_CP_TARGET_LIST 57AM_CPPFLAGS += -DMASTER_SIDE_CP 58endif 59 60AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/ 61AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/vdec/inc/ 62AM_CPPFLAGS += -I$(top_srcdir)/libc2dcolorconvert/ 63AM_CPPFLAGS += -I$(top_srcdir)/libplatformconfig/ 64AM_CPPFLAGS += -I$(top_srcdir)/libarbitrarybytes/inc/ 65AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/ 66AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/ 67 68AM_CPPFLAGS += -I$(WORKSPACE)/graphics/libdrm/freedreno/kgsl/ 69AM_CPPFLAGS += -I$(WORKSPACE)/display/display-hal/gralloc/ 70AM_CPPFLAGS += -I$(WORKSPACE)/display/display-hal/libqdutils/ 71AM_CPPFLAGS += -I$(WORKSPACE)/hardware/libhardware/include/ 72AM_CPPFLAGS += -I${WORKSPACE}/frameworks/native/include/ 73c_sources = src/ts_parser.cpp 74c_sources += src/omx_vdec_v4l2.cpp 75c_sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_common.cpp 76c_sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_vendor_extensions.cpp 77 78lib_LTLIBRARIES = libOmxVdec.la 79libOmxVdec_la_SOURCES = $(c_sources) 80libOmxVdec_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 81libOmxVdec_la_LDFLAGS = -module -shared -avoid-version 82libOmxVdec_la_LDFLAGS += -llog -lcutils -lglib-2.0 -lion -lqdMetaData 83libOmxVdec_la_LDFLAGS += -L$(top_builddir)/libc2dcolorconvert -L$(top_builddir)/libplatformconfig -L$(top_builddir)/libarbitrarybytes 84libOmxVdec_la_LDFLAGS += -lc2dcolorconvert -lplatformconfig -larbitrarybytes 85 86if TARGET_HYPERVISOR 87libOmxVdec_la_LDFLAGS += -L$(top_builddir)/hypv-intercept 88libOmxVdec_la_LDFLAGS += -lhypv_intercept 89endif 90