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 60ifneq ($(filter msm8952 msm8992 msm8994,$(TARGET_BOARD_PLATFORM)),) 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 := $(LOCAL_PATH)/venc/inc 79libmm-venc-inc += $(OMX_VIDEO_PATH)/vidc/common/inc 80libmm-venc-inc += hardware/qcom/media/msm8974/mm-core/inc 81libmm-venc-inc += hardware/qcom/media/msm8974/libstagefrighthw 82libmm-venc-inc += $(TARGET_OUT_HEADERS)/qcom/display 83libmm-venc-inc += $(TARGET_OUT_HEADERS)/adreno 84libmm-venc-inc += frameworks/native/include/media/hardware 85libmm-venc-inc += frameworks/native/include/media/openmax 86libmm-venc-inc += hardware/qcom/media/msm8974/libc2dcolorconvert 87libmm-venc-inc += frameworks/av/include/media/stagefright 88libmm-venc-inc += frameworks/av/include/media/hardware 89libmm-venc-inc += $(venc-inc) 90 91LOCAL_MODULE := libOmxVenc 92LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 93LOCAL_LICENSE_CONDITIONS := notice 94LOCAL_MODULE_TAGS := optional 95LOCAL_CFLAGS := $(libmm-venc-def) 96LOCAL_C_INCLUDES := $(libmm-venc-inc) 97 98LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libcutils \ 99 libc2dcolorconvert libdl libgui 100 101LOCAL_SRC_FILES := venc/src/omx_video_base.cpp 102LOCAL_SRC_FILES += venc/src/omx_video_encoder.cpp 103ifneq ($(filter msm8974 msm8610 msm8226 msm8084 msm8952 msm8992 msm8994,$(TARGET_BOARD_PLATFORM)),) 104LOCAL_SRC_FILES += venc/src/video_encoder_device_v4l2.cpp 105else 106LOCAL_SRC_FILES += venc/src/video_encoder_device.cpp 107endif 108 109LOCAL_SRC_FILES += common/src/extra_data_handler.cpp 110 111LOCAL_CFLAGS += -Wno-error 112 113include $(BUILD_SHARED_LIBRARY) 114 115endif #BUILD_TINY_ANDROID 116 117# --------------------------------------------------------------------------------- 118# END 119# --------------------------------------------------------------------------------- 120