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_
22
23if TARGET_HYPERVISOR
24AM_CPPFLAGS += -DHYPERVISOR
25AM_CPPFLAGS += -I$(top_srcdir)/hypv-intercept/
26endif
27
28AM_CPPFLAGS += -DUSE_ION
29AM_CPPFLAGS += -Wno-enum-compare
30#AM_CPPFLAGS += "-include stdint.h"
31AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy"
32AM_CPPFLAGS += "-Dstrlcat=g_strlcat"
33AM_CPPFLAGS += "-std=c++11"
34AM_CPPFLAGS += -Wno-undef
35AM_CPPFLAGS += -Wno-multichar
36AM_CPPFLAGS += -g -O3
37AM_CPPFLAGS += "-DHAVE_ANDROID_OS"
38AM_CPPFLAGS += "-DUSE_CAMERA_METABUFFER_UTILS"
39
40if USE_GLIB
41AM_CPPFLAGS += -D_USE_GLIB_
42endif
43
44if TARGET_MSM8610
45AM_CPPFLAGS += -D_MSM8610_
46endif
47
48if TARGETS_THAT_SUPPORT_PQ
49AM_CPPFLAGS += -D_PQ_
50endif
51
52if TARGETS_THAT_USE_FLAG_MSM8226
53AM_CPPFLAGS += -D_MSM8226_
54endif
55
56if TARGET_USES_MEDIA_EXTENSIONS
57AM_CPPFLAGS += -DUSE_NATIVE_HANDLE_SOURCE
58endif
59
60if MASTER_SIDE_CP_TARGET_LIST
61AM_CPPFLAGS += -DMASTER_SIDE_CP
62endif
63
64AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/
65AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/venc/inc/
66AM_CPPFLAGS += -I$(top_srcdir)/libc2dcolorconvert/
67AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/
68AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/
69AM_CPPFLAGS += -I$(top_srcdir)/libstagefrighthw/
70AM_CPPFLAGS += -I$(top_srcdir)/libplatformconfig/
71AM_CPPFLAGS += -I$(WORKSPACE)/graphics/libdrm/freedreno/kgsl/
72AM_CPPFLAGS += -I$(WORKSPACE)/display/display-hal/gralloc/
73AM_CPPFLAGS += -I$(WORKSPACE)/display/display-hal/libqdutils/
74AM_CPPFLAGS += -I$(WORKSPACE)/hardware/libhardware/include/
75AM_CPPFLAGS += -I${WORKSPACE}/frameworks/native/include/
76sources = src/omx_video_base.cpp
77sources += src/omx_video_encoder.cpp
78sources += src/video_encoder_device_v4l2.cpp
79sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_common.cpp
80sources += $(top_srcdir)/mm-video-v4l2/vidc/common/src/vidc_vendor_extensions.cpp
81
82lib_LTLIBRARIES = libOmxVenc.la
83libOmxVenc_la_SOURCES = $(sources)
84libOmxVenc_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
85libOmxVenc_la_LDFLAGS = -module -shared -avoid-version
86libOmxVenc_la_LDFLAGS += -lstdc++ -lpthread -llog -lutils -lcutils -lglib-2.0 -lbase -ldl -lpthread -lion
87
88libOmxVenc_la_LDFLAGS += -L$(top_builddir)/libplatformconfig
89libOmxVenc_la_LDFLAGS += -lplatformconfig
90
91if TARGET_HYPERVISOR
92libOmxVenc_la_LDFLAGS += -L$(top_builddir)/hypv-intercept
93libOmxVenc_la_LDFLAGS += -lhypv_intercept
94endif
95