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 libOmxVdec-def += -D__align=__alignx 13 libOmxVdec-def += -Dinline=__inline 14 libOmxVdec-def += -DIMAGE_APPS_PROC 15 libOmxVdec-def += -D_ANDROID_ 16 libOmxVdec-def += -DCDECL 17 libOmxVdec-def += -DT_ARM 18 libOmxVdec-def += -DNO_ARM_CLZ 19 libOmxVdec-def += -UENABLE_DEBUG_LOW 20 libOmxVdec-def += -DENABLE_DEBUG_HIGH 21 libOmxVdec-def += -DENABLE_DEBUG_ERROR 22 libOmxVdec-def += -UINPUT_BUFFER_LOG 23 libOmxVdec-def += -UOUTPUT_BUFFER_LOG 24 ifeq ($(TARGET_BOARD_PLATFORM),msm8660) 25 libOmxVdec-def += -DMAX_RES_1080P 26 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT 27 libOmxVdec-def += -DTEST_TS_FROM_SEI 28 endif 29 ifeq ($(TARGET_BOARD_PLATFORM),msm8960) 30 libOmxVdec-def += -DMAX_RES_1080P 31 libOmxVdec-def += -DMAX_RES_1080P_EBI 32 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT 33 endif 34 ifeq ($(TARGET_BOARD_PLATFORM),msm8974) 35 libOmxVdec-def += -DMAX_RES_1080P 36 libOmxVdec-def += -DMAX_RES_1080P_EBI 37 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT 38 libOmxVdec-def += -D_COPPER_ 39 endif 40 41 libOmxVdec-def += -D_ANDROID_ICS_ 42 43 #ifeq ($(TARGET_USES_ION),true) 44 libOmxVdec-def += -DUSE_ION 45 #endif 46 47 # --------------------------------------------------------------------------------- 48 # Make the Shared library (libOmxVdec) 49 # --------------------------------------------------------------------------------- 50 51 include $(CLEAR_VARS) 52 LOCAL_PATH:= $(ROOT_DIR) 53 54 libmm-vdec-inc := $(LOCAL_PATH)/vdec/inc 55 libmm-vdec-inc += $(OMX_VIDEO_PATH)/vidc/common/inc 56 libmm-vdec-inc += hardware/qcom/media/msm8974/mm-core/inc 57 #DRM include - Interface which loads the DRM library 58 libmm-vdec-inc += $(OMX_VIDEO_PATH)/DivxDrmDecrypt/inc 59 libmm-vdec-inc += $(TARGET_OUT_HEADERS)/qcom/display 60 libmm-vdec-inc += $(TARGET_OUT_HEADERS)/adreno 61 libmm-vdec-inc += $(TARGET_OUT_HEADERS)/adreno200 62 libmm-vdec-inc += frameworks/native/include/media/openmax 63 libmm-vdec-inc += frameworks/native/include/media/hardware 64 libmm-vdec-inc += hardware/qcom/media/msm8974/libc2dcolorconvert 65 libmm-vdec-inc += frameworks/av/include/media/stagefright 66 67 LOCAL_MODULE := libOmxVdec 68 LOCAL_MODULE_TAGS := optional 69 LOCAL_CFLAGS := $(libOmxVdec-def) 70 LOCAL_C_INCLUDES += $(libmm-vdec-inc) 71 72 LOCAL_SHARED_LIBRARIES := liblog libutils libbinder libcutils libdl 73 74 LOCAL_SHARED_LIBRARIES += libdivxdrmdecrypt 75 LOCAL_SHARED_LIBRARIES += libqservice 76 LOCAL_SHARED_LIBRARIES += libqdMetaData 77 78 LOCAL_SRC_FILES := vdec/src/frameparser.cpp 79 LOCAL_SRC_FILES += vdec/src/h264_utils.cpp 80 LOCAL_SRC_FILES += vdec/src/ts_parser.cpp 81 LOCAL_SRC_FILES += vdec/src/mp4_utils.cpp 82 LOCAL_SRC_FILES += vdec/src/omx_vdec.cpp 83 LOCAL_SRC_FILES += common/src/extra_data_handler.cpp 84 LOCAL_SRC_FILES += common/src/vidc_color_converter.cpp 85 86 include $(BUILD_SHARED_LIBRARY) 87 88 # --------------------------------------------------------------------------------- 89 # Make the apps-test (mm-vdec-omx-test) 90 # --------------------------------------------------------------------------------- 91 include $(CLEAR_VARS) 92 93 mm-vdec-test-inc := hardware/qcom/media/msm8974/mm-core/inc 94 mm-vdec-test-inc += $(LOCAL_PATH)/vdec/inc 95 96 LOCAL_MODULE := mm-vdec-omx-test 97 LOCAL_MODULE_TAGS := optional 98 LOCAL_CFLAGS := $(libOmxVdec-def) 99 LOCAL_C_INCLUDES := $(mm-vdec-test-inc) 100 101 LOCAL_SHARED_LIBRARIES := libutils liblog libOmxCore libOmxVdec libbinder 102 103 LOCAL_SRC_FILES := vdec/src/queue.c 104 LOCAL_SRC_FILES += vdec/test/omx_vdec_test.cpp 105 106 include $(BUILD_EXECUTABLE) 107 108 # --------------------------------------------------------------------------------- 109 # Make the driver-test (mm-video-driver-test) 110 # --------------------------------------------------------------------------------- 111 include $(CLEAR_VARS) 112 113 mm-vdec-drv-test-inc := hardware/qcom/media/msm8974/mm-core/inc 114 mm-vdec-drv-test-inc += $(LOCAL_PATH)/vdec/inc 115 116 LOCAL_MODULE := mm-video-driver-test 117 LOCAL_MODULE_TAGS := optional 118 LOCAL_CFLAGS := $(libOmxVdec-def) 119 LOCAL_C_INCLUDES := $(mm-vdec-drv-test-inc) 120 121 LOCAL_SRC_FILES := vdec/src/message_queue.c 122 LOCAL_SRC_FILES += vdec/test/decoder_driver_test.c 123 124 include $(BUILD_EXECUTABLE) 125 126 endif #BUILD_TINY_ANDROID 127 128 # --------------------------------------------------------------------------------- 129 # END 130 # --------------------------------------------------------------------------------- 131