1#AM_CFLAGS = -Wall 2#AM_CFLAGS = -Wundef 3#AM_CFLAGS += -Wstrict-prototypes 4#AM_CFLAGS += -Wno-trigraphs 5#AM_CFLAGS += -Wno-multichar 6 7AM_CPPFLAGS = -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\) 8AM_CPPFLAGS += -D__align=__alignx 9AM_CPPFLAGS += -Dinline=__inline 10AM_CPPFLAGS += -DIMAGE_APPS_PROC 11AM_CPPFLAGS += -DCDECL 12AM_CPPFLAGS += -DT_ARM 13AM_CPPFLAGS += -DNO_ARM_CLZ 14AM_CPPFLAGS += -D_ANDROID_ 15AM_CPPFLAGS += -UENABLE_DEBUG_LOW 16AM_CPPFLAGS += -DENABLE_DEBUG_HIGH 17AM_CPPFLAGS += -DENABLE_DEBUG_ERROR 18AM_CPPFLAGS += -UINPUT_BUFFER_LOG 19AM_CPPFLAGS += -UOUTPUT_BUFFER_LOG 20AM_CPPFLAGS += -Werror 21AM_CPPFLAGS += -D_ANDROID_ICS_ 22AM_CPPFLAGS += -D_MSM8974_ 23AM_CPPFLAGS += -DUSE_ION 24#AM_CPPFLAGS += "-include stdint.h" 25AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" 26AM_CPPFLAGS += "-Dstrlcat=g_strlcat" 27AM_CPPFLAGS += "-std=c++11" 28AM_CPPFLAGS += -Wno-undef 29AM_CPPFLAGS += -Wno-multichar 30AM_CPPFLAGS += -g -O3 31AM_CPPFLAGS += "-DHAVE_ANDROID_OS" 32AM_CPPFLAGS += "-DUSE_CAMERA_METABUFFER_UTILS" 33 34if USE_GLIB 35AM_CPPFLAGS += -D_USE_GLIB_ 36endif 37 38if TARGET_MSM8610 39AM_CPPFLAGS += -DMAX_RES_720P 40AM_CPPFLAGS += -D_MSM8610_ 41else 42if TARGET_MSM8226 43AM_CPPFLAGS += -DMAX_RES_1080P 44else 45AM_CPPFLAGS += -DMAX_RES_1080P 46AM_CPPFLAGS += -DMAX_RES_1080P_EBI 47endif 48endif 49 50if TARGETS_THAT_SUPPORT_PQ 51AM_CPPFLAGS += -D_PQ_ 52endif 53 54if TARGETS_THAT_SUPPORT_UBWC 55AM_CPPFLAGS += -D_UBWC_ 56endif 57 58if TARGETS_THAT_SUPPORT_VQZIP 59AM_CPPFLAGS += -D_VQZIP_ 60endif 61 62if TARGETS_THAT_USE_FLAG_MSM8226 63AM_CPPFLAGS += -D_MSM8226_ 64endif 65 66if TARGET_USES_MEDIA_EXTENSIONS 67AM_CPPFLAGS += -DUSE_NATIVE_HANDLE_SOURCE 68AM_CPPFLAGS += -DSUPPORT_CONFIG_INTRA_REFRESH 69endif 70 71if MASTER_SIDE_CP_TARGET_LIST 72AM_CPPFLAGS += -DMASTER_SIDE_CP 73endif 74 75AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/ 76AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/venc/inc/ 77AM_CPPFLAGS += -I$(top_srcdir)/libc2dcolorconvert/ 78AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/ 79AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/ 80AM_CPPFLAGS += -I$(top_srcdir)/libstagefrighthw/ 81 82sources = src/omx_video_base.cpp 83sources += src/omx_video_encoder.cpp 84sources += src/video_encoder_device_v4l2.cpp 85sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/extra_data_handler.cpp 86sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_color_converter.cpp 87 88lib_LTLIBRARIES = libOmxVenc.la 89libOmxVenc_la_SOURCES = $(sources) 90libOmxVenc_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 91#libOmxVenc_la_LDLIBS = ../libc2d2colorconvert/libc2dcolorconvert.la 92#libOmxVenc_la_LIBADD = ../../../mm-core/libOmxCore.la 93libOmxVenc_la_LDFLAGS = -lstdc++ -lpthread -llog -lutils -lbinder -lcutils -lglib-2.0 -lbase -ldl -lpthread -shared -lqdMetaData 94# -lc2d2 -lgui -lOmxCore -lgpustats -ldl -lpthread 95libOmxVenc_la_LDFLAGS += -version-info 0 96 97