1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4ifeq ($(ENABLE_IMG_GRAPHICS),)
5LOCAL_CFLAGS += \
6    -DBX_RC \
7    -DOSCL_IMPORT_REF= \
8    -DOSCL_UNUSED_ARG= \
9    -DOSCL_EXPORT_REF=
10
11LOCAL_STATIC_LIBRARIES := \
12    libstagefright_m4vh263enc
13endif
14
15LOCAL_SRC_FILES := \
16    VideoEncoderBase.cpp \
17    VideoEncoderAVC.cpp \
18    VideoEncoderH263.cpp \
19    VideoEncoderMP4.cpp \
20    VideoEncoderVP8.cpp \
21    VideoEncoderUtils.cpp \
22    VideoEncoderHost.cpp
23
24ifeq ($(ENABLE_IMG_GRAPHICS),)
25    LOCAL_SRC_FILES += PVSoftMPEG4Encoder.cpp
26endif
27
28LOCAL_C_INCLUDES := \
29    $(TARGET_OUT_HEADERS)/libva \
30    $(call include-path-for, frameworks-native) \
31    $(TARGET_OUT_HEADERS)/pvr
32
33ifeq ($(ENABLE_IMG_GRAPHICS),)
34LOCAL_C_INCLUDES += \
35    frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include \
36    frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src \
37    frameworks/av/media/libstagefright/codecs/common/include \
38    frameworks/native/include/media/openmax \
39    frameworks/native/include/media/hardware \
40    frameworks/av/media/libstagefright/include
41endif
42
43LOCAL_SHARED_LIBRARIES := \
44    libcutils \
45    libutils \
46    libva \
47    libva-android \
48    libva-tpi \
49    libhardware \
50    libintelmetadatabuffer
51
52LOCAL_COPY_HEADERS_TO  := libmix_videoencoder
53
54LOCAL_COPY_HEADERS := \
55    VideoEncoderHost.h \
56    VideoEncoderInterface.h \
57    VideoEncoderDef.h
58
59ifeq ($(VIDEO_ENC_LOG_ENABLE),true)
60LOCAL_CPPFLAGS += -DVIDEO_ENC_LOG_ENABLE
61endif
62
63ifeq ($(NO_BUFFER_SHARE),true)
64LOCAL_CPPFLAGS += -DNO_BUFFER_SHARE
65endif
66
67ifeq ($(VIDEO_ENC_STATISTICS_ENABLE),true)
68LOCAL_CPPFLAGS += -DVIDEO_ENC_STATISTICS_ENABLE
69endif
70
71ifeq ($(ENABLE_IMG_GRAPHICS),true)
72    LOCAL_CFLAGS += -DIMG_GFX
73
74    ifeq ($(ENABLE_MRFL_GRAPHICS),true)
75        LOCAL_CFLAGS += -DMRFLD_GFX
76    endif
77endif
78
79LOCAL_CFLAGS += -Werror
80LOCAL_MODULE_TAGS := optional
81LOCAL_MODULE := libva_videoencoder
82
83include $(BUILD_SHARED_LIBRARY)
84
85# For libintelmetadatabuffer
86# =====================================================
87
88include $(CLEAR_VARS)
89
90VIDEO_ENC_LOG_ENABLE := true
91
92LOCAL_SRC_FILES := \
93    IntelMetadataBuffer.cpp
94
95LOCAL_COPY_HEADERS_TO  := libmix_videoencoder
96
97LOCAL_COPY_HEADERS := \
98    IntelMetadataBuffer.h
99
100ifeq ($(INTEL_VIDEO_XPROC_SHARING),true)
101LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libgui \
102                          libui libcutils libhardware
103endif
104LOCAL_CFLAGS += -Werror
105LOCAL_MODULE_TAGS := optional
106LOCAL_MODULE := libintelmetadatabuffer
107
108include $(BUILD_SHARED_LIBRARY)
109