Home | History | Annotate | Download | only in vidc
      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          := bionic/libc/include
     55 libmm-vdec-inc          += bionic/libstdc++/include
     56 libmm-vdec-inc          += $(LOCAL_PATH)/vdec/inc
     57 libmm-vdec-inc          += $(OMX_VIDEO_PATH)/vidc/common/inc
     58 libmm-vdec-inc          += hardware/qcom/media/mm-core/inc
     59 #DRM include - Interface which loads the DRM library
     60 libmm-vdec-inc	        += $(OMX_VIDEO_PATH)/DivxDrmDecrypt/inc
     61 libmm-vdec-inc	        += $(TARGET_OUT_HEADERS)/qcom/display
     62 libmm-vdec-inc	        += $(TARGET_OUT_HEADERS)/adreno
     63 libmm-vdec-inc	        += $(TARGET_OUT_HEADERS)/adreno200
     64 libmm-vdec-inc          += frameworks/native/include/media/openmax
     65 libmm-vdec-inc          += frameworks/native/include/media/hardware
     66 libmm-vdec-inc          += hardware/qcom/media/libc2dcolorconvert
     67 libmm-vdec-inc          += frameworks/av/include/media/stagefright
     68 
     69 LOCAL_MODULE                    := libOmxVdec
     70 LOCAL_MODULE_TAGS               := optional
     71 LOCAL_CFLAGS                    := $(libOmxVdec-def)
     72 LOCAL_C_INCLUDES                += $(libmm-vdec-inc)
     73 
     74 LOCAL_PRELINK_MODULE    := false
     75 LOCAL_SHARED_LIBRARIES  := liblog libutils libbinder libcutils libdl
     76 
     77 LOCAL_SHARED_LIBRARIES  += libdivxdrmdecrypt
     78 LOCAL_SHARED_LIBRARIES += libqservice
     79 LOCAL_SHARED_LIBRARIES += libqdMetaData
     80 
     81 LOCAL_SRC_FILES         := vdec/src/frameparser.cpp
     82 LOCAL_SRC_FILES         += vdec/src/h264_utils.cpp
     83 LOCAL_SRC_FILES         += vdec/src/ts_parser.cpp
     84 LOCAL_SRC_FILES         += vdec/src/mp4_utils.cpp
     85 LOCAL_SRC_FILES         += vdec/src/omx_vdec.cpp
     86 LOCAL_SRC_FILES         += common/src/extra_data_handler.cpp
     87 LOCAL_SRC_FILES         += common/src/vidc_color_converter.cpp
     88 
     89 include $(BUILD_SHARED_LIBRARY)
     90 
     91 # ---------------------------------------------------------------------------------
     92 # 			Make the apps-test (mm-vdec-omx-test)
     93 # ---------------------------------------------------------------------------------
     94 include $(CLEAR_VARS)
     95 
     96 mm-vdec-test-inc    := hardware/qcom/media/mm-core/inc
     97 mm-vdec-test-inc    += $(LOCAL_PATH)/vdec/inc
     98 
     99 LOCAL_MODULE                    := mm-vdec-omx-test
    100 LOCAL_MODULE_TAGS               := optional
    101 LOCAL_CFLAGS                    := $(libOmxVdec-def)
    102 LOCAL_C_INCLUDES                := $(mm-vdec-test-inc)
    103 
    104 LOCAL_PRELINK_MODULE      := false
    105 LOCAL_SHARED_LIBRARIES    := libutils liblog libOmxCore libOmxVdec libbinder
    106 
    107 LOCAL_SRC_FILES           := vdec/src/queue.c
    108 LOCAL_SRC_FILES           += vdec/test/omx_vdec_test.cpp
    109 
    110 include $(BUILD_EXECUTABLE)
    111 
    112 # ---------------------------------------------------------------------------------
    113 # 			Make the driver-test (mm-video-driver-test)
    114 # ---------------------------------------------------------------------------------
    115 include $(CLEAR_VARS)
    116 
    117 mm-vdec-drv-test-inc    := hardware/qcom/media/mm-core/inc
    118 mm-vdec-drv-test-inc    += $(LOCAL_PATH)/vdec/inc
    119 
    120 LOCAL_MODULE                    := mm-video-driver-test
    121 LOCAL_MODULE_TAGS               := optional
    122 LOCAL_CFLAGS                    := $(libOmxVdec-def)
    123 LOCAL_C_INCLUDES                := $(mm-vdec-drv-test-inc)
    124 LOCAL_PRELINK_MODULE            := false
    125 
    126 LOCAL_SRC_FILES                 := vdec/src/message_queue.c
    127 LOCAL_SRC_FILES                 += vdec/test/decoder_driver_test.c
    128 
    129 include $(BUILD_EXECUTABLE)
    130 
    131 endif #BUILD_TINY_ANDROID
    132 
    133 # ---------------------------------------------------------------------------------
    134 #                END
    135 # ---------------------------------------------------------------------------------
    136