1ifneq ($(BUILD_TINY_ANDROID),true) 2 3ROOT_DIR := $(call my-dir) 4 5include $(CLEAR_VARS) 6LOCAL_PATH:= $(ROOT_DIR) 7 8# --------------------------------------------------------------------------------- 9# Common definitons 10# --------------------------------------------------------------------------------- 11 12libmm-venc-def := -g -O3 -Dlrintf=_ffix_r 13libmm-venc-def += -D__align=__alignx 14libmm-venc-def += -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\) 15libmm-venc-def += -DT_ARM 16libmm-venc-def += -Dinline=__inline 17libmm-venc-def += -D_ANDROID_ 18libmm-venc-def += -UENABLE_DEBUG_LOW 19libmm-venc-def += -DENABLE_DEBUG_HIGH 20libmm-venc-def += -DENABLE_DEBUG_ERROR 21libmm-venc-def += -UINPUT_BUFFER_LOG 22libmm-venc-def += -UOUTPUT_BUFFER_LOG 23libmm-venc-def += -USINGLE_ENCODER_INSTANCE 24ifeq ($(TARGET_BOARD_PLATFORM),msm8660) 25libmm-venc-def += -DMAX_RES_1080P 26libmm-venc-def += -UENABLE_GET_SYNTAX_HDR 27endif 28ifeq ($(TARGET_BOARD_PLATFORM),msm8960) 29libmm-venc-def += -DMAX_RES_1080P 30libmm-venc-def += -DMAX_RES_1080P_EBI 31libmm-venc-def += -UENABLE_GET_SYNTAX_HDR 32endif 33ifeq ($(TARGET_BOARD_PLATFORM),msm8974) 34libmm-venc-def += -DMAX_RES_1080P 35libmm-venc-def += -DMAX_RES_1080P_EBI 36libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT 37libmm-venc-def += -D_MSM8974_ 38endif 39ifeq ($(TARGET_BOARD_PLATFORM),msm7627a) 40libmm-venc-def += -DMAX_RES_720P 41endif 42ifeq ($(TARGET_BOARD_PLATFORM),msm7630_surf) 43libmm-venc-def += -DMAX_RES_720P 44endif 45ifeq ($(TARGET_BOARD_PLATFORM),msm8610) 46libmm-venc-def += -DMAX_RES_720P 47libmm-venc-def += -D_MSM8974_ 48endif 49ifeq ($(TARGET_BOARD_PLATFORM),msm8226) 50libmm-venc-def += -DMAX_RES_1080P 51libmm-venc-def += -D_MSM8974_ 52endif 53ifeq ($(TARGET_BOARD_PLATFORM),msm8084) 54libmm-venc-def += -DMAX_RES_1080P 55libmm-venc-def += -DMAX_RES_1080P_EBI 56libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT 57libmm-venc-def += -D_MSM8974_ 58libmm-venc-def += -D_ION_HEAP_MASK_COMPATIBILITY_WA 59endif 60ifeq ($(TARGET_BOARD_PLATFORM),mpq8092) 61libmm-venc-def += -DMAX_RES_1080P 62libmm-venc-def += -DMAX_RES_1080P_EBI 63libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT 64libmm-venc-def += -D_MSM8974_ 65endif 66 67ifeq ($(TARGET_USES_ION),true) 68libmm-venc-def += -DUSE_ION 69endif 70 71libmm-venc-def += -D_ANDROID_ICS_ 72# --------------------------------------------------------------------------------- 73# Make the Shared library (libOmxVenc) 74# --------------------------------------------------------------------------------- 75 76include $(CLEAR_VARS) 77 78libmm-venc-inc := bionic/libc/include 79libmm-venc-inc += bionic/libstdc++/include 80libmm-venc-inc += $(LOCAL_PATH)/venc/inc 81libmm-venc-inc += $(OMX_VIDEO_PATH)/vidc/common/inc 82libmm-venc-inc += hardware/qcom/media/mm-core/inc 83libmm-venc-inc += hardware/qcom/media/libstagefrighthw 84libmm-venc-inc += $(TARGET_OUT_HEADERS)/qcom/display 85libmm-venc-inc += $(TARGET_OUT_HEADERS)/adreno 86libmm-venc-inc += frameworks/native/include/media/hardware 87libmm-venc-inc += frameworks/native/include/media/openmax 88libmm-venc-inc += hardware/qcom/media/libc2dcolorconvert 89libmm-venc-inc += frameworks/av/include/media/stagefright 90libmm-venc-inc += frameworks/av/include/media/hardware 91libmm-venc-inc += $(venc-inc) 92 93LOCAL_MODULE := libOmxVenc 94LOCAL_MODULE_TAGS := optional 95LOCAL_CFLAGS := $(libmm-venc-def) 96LOCAL_C_INCLUDES := $(libmm-venc-inc) 97 98LOCAL_PRELINK_MODULE := false 99LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libcutils \ 100 libc2dcolorconvert libdl libgui 101 102LOCAL_SRC_FILES := venc/src/omx_video_base.cpp 103LOCAL_SRC_FILES += venc/src/omx_video_encoder.cpp 104ifneq ($(filter msm8974 msm8610 msm8226 msm8084 mpq8092,$(TARGET_BOARD_PLATFORM)),) 105LOCAL_SRC_FILES += venc/src/video_encoder_device_v4l2.cpp 106else 107LOCAL_SRC_FILES += venc/src/video_encoder_device.cpp 108endif 109 110LOCAL_SRC_FILES += common/src/extra_data_handler.cpp 111 112include $(BUILD_SHARED_LIBRARY) 113 114endif #BUILD_TINY_ANDROID 115 116# --------------------------------------------------------------------------------- 117# END 118# --------------------------------------------------------------------------------- 119