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 += -DUSE_ION 23#AM_CPPFLAGS += "-include stdint.h" 24AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" 25AM_CPPFLAGS += "-Dstrlcat=g_strlcat" 26AM_CPPFLAGS += "-std=c++11" 27AM_CPPFLAGS += -Wno-undef 28AM_CPPFLAGS += -Wno-multichar 29AM_CPPFLAGS += -g -O3 30AM_CPPFLAGS += "-DHAVE_ANDROID_OS" 31AM_CPPFLAGS += "-DUSE_CAMERA_METABUFFER_UTILS" 32 33if USE_GLIB 34AM_CPPFLAGS += -D_USE_GLIB_ 35endif 36 37if TARGET_MSM8610 38AM_CPPFLAGS += -D_MSM8610_ 39endif 40 41if TARGETS_THAT_SUPPORT_PQ 42AM_CPPFLAGS += -D_PQ_ 43endif 44 45if TARGETS_THAT_USE_FLAG_MSM8226 46AM_CPPFLAGS += -D_MSM8226_ 47endif 48 49if TARGET_USES_MEDIA_EXTENSIONS 50AM_CPPFLAGS += -DUSE_NATIVE_HANDLE_SOURCE 51endif 52 53if MASTER_SIDE_CP_TARGET_LIST 54AM_CPPFLAGS += -DMASTER_SIDE_CP 55endif 56 57AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/ 58AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/venc/inc/ 59AM_CPPFLAGS += -I$(top_srcdir)/libc2dcolorconvert/ 60AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/ 61AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/ 62AM_CPPFLAGS += -I$(top_srcdir)/libstagefrighthw/ 63 64sources = src/omx_video_base.cpp 65sources += src/omx_video_encoder.cpp 66sources += src/video_encoder_device_v4l2.cpp 67sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/extra_data_handler.cpp 68sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_color_converter.cpp 69 70lib_LTLIBRARIES = libOmxVenc.la 71libOmxVenc_la_SOURCES = $(sources) 72libOmxVenc_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 73#libOmxVenc_la_LDLIBS = ../libc2d2colorconvert/libc2dcolorconvert.la 74#libOmxVenc_la_LIBADD = ../../../mm-core/libOmxCore.la 75libOmxVenc_la_LDFLAGS = -lstdc++ -lpthread -llog -lutils -lbinder -lcutils -lglib-2.0 -lbase -ldl -lpthread -shared -lqdMetaData 76# -lc2d2 -lgui -lOmxCore -lgpustats -ldl -lpthread 77libOmxVenc_la_LDFLAGS += -version-info 0 78