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 libOmxVdpp-def := -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\) 13 libOmxVdpp-def += -D__align=__alignx 14 libOmxVdpp-def += -Dinline=__inline 15 libOmxVdpp-def += -g -O3 16 libOmxVdpp-def += -DIMAGE_APPS_PROC 17 libOmxVdpp-def += -D_ANDROID_ 18 libOmxVdpp-def += -DCDECL 19 libOmxVdpp-def += -DT_ARM 20 libOmxVdpp-def += -DNO_ARM_CLZ 21 libOmxVdpp-def += -UENABLE_DEBUG_LOW 22 libOmxVdpp-def += -DENABLE_DEBUG_HIGH 23 libOmxVdpp-def += -DENABLE_DEBUG_ERROR 24 libOmxVdpp-def += -D_ANDROID_ICS_ 25 libOmxVdpp-def += -UINPUT_BUFFER_LOG 26 libOmxVdpp-def += -UOUTPUT_BUFFER_LOG 27 libOmxVdpp-def += -DMAX_RES_1080P 28 libOmxVdpp-def += -DMAX_RES_1080P_EBI 29 30 ifeq ($(TARGET_USES_ION),true) 31 libOmxVdpp-def += -DUSE_ION 32 endif 33 34 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 35 vidpp-inc = $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 36 endif 37 38 # --------------------------------------------------------------------------------- 39 # Make the Shared library (libOmxVdpp) 40 # --------------------------------------------------------------------------------- 41 42 include $(CLEAR_VARS) 43 LOCAL_PATH:= $(ROOT_DIR) 44 45 libmm-vidpp-inc += $(LOCAL_PATH)/inc 46 libmm-vidpp-inc += $(OMX_VIDEO_PATH)/vidc/common/inc 47 libmm-vidpp-inc += hardware/qcom/media/msm8996/mm-core/inc 48 libmm-vidpp-inc += $(TARGET_OUT_HEADERS)/qcom/display 49 libmm-vidpp-inc += frameworks/native/include/media/openmax 50 libmm-vidpp-inc += frameworks/native/include/media/hardware 51 libmm-vidpp-inc += $(vidpp-inc) 52 libmm-vidpp-inc += frameworks/av/include/media/stagefright 53 54 LOCAL_MODULE := libOmxVdpp 55 LOCAL_MODULE_TAGS := optional 56 LOCAL_CFLAGS := $(libOmxVdpp-def) 57 LOCAL_C_INCLUDES += $(libmm-vidpp-inc) 58 59 LOCAL_PRELINK_MODULE := false 60 LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libcutils libdl libc 61 62 LOCAL_SRC_FILES += src/omx_vdpp.cpp 63 64 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 65 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 66 endif 67 68 include $(BUILD_SHARED_LIBRARY) 69 70 endif #BUILD_TINY_ANDROID 71 72 # --------------------------------------------------------------------------------- 73 # END 74 # --------------------------------------------------------------------------------- 75