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