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__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\)
     13 libOmxVdec-def += -D__align=__alignx
     14 libOmxVdec-def += -Dinline=__inline
     15 libOmxVdec-def += -g -O3
     16 libOmxVdec-def += -DIMAGE_APPS_PROC
     17 libOmxVdec-def += -D_ANDROID_
     18 libOmxVdec-def += -DCDECL
     19 libOmxVdec-def += -DT_ARM
     20 libOmxVdec-def += -DNO_ARM_CLZ
     21 libOmxVdec-def += -UENABLE_DEBUG_LOW
     22 libOmxVdec-def += -DENABLE_DEBUG_HIGH
     23 libOmxVdec-def += -DENABLE_DEBUG_ERROR
     24 libOmxVdec-def += -UINPUT_BUFFER_LOG
     25 libOmxVdec-def += -UOUTPUT_BUFFER_LOG
     26 ifeq ($(TARGET_BOARD_PLATFORM),msm8660)
     27 libOmxVdec-def += -DMAX_RES_1080P
     28 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     29 libOmxVdec-def += -DTEST_TS_FROM_SEI
     30 endif
     31 ifeq ($(TARGET_BOARD_PLATFORM),msm8960)
     32 libOmxVdec-def += -DMAX_RES_1080P
     33 libOmxVdec-def += -DMAX_RES_1080P_EBI
     34 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     35 libOmxVdec-def += -D_MSM8960_
     36 endif
     37 ifeq ($(TARGET_BOARD_PLATFORM),msm8974)
     38 libOmxVdec-def += -DMAX_RES_1080P
     39 libOmxVdec-def += -DMAX_RES_1080P_EBI
     40 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     41 libOmxVdec-def += -D_MSM8974_
     42 libOmxVdec-def += -D_HEVC_USE_ADSP_HEAP_
     43 endif
     44 ifeq ($(TARGET_BOARD_PLATFORM),msm7627a)
     45 libOmxVdec-def += -DMAX_RES_720P
     46 endif
     47 ifeq ($(TARGET_BOARD_PLATFORM),msm7630_surf)
     48 libOmxVdec-def += -DMAX_RES_720P
     49 endif
     50 ifeq ($(TARGET_BOARD_PLATFORM),msm8610)
     51 libOmxVdec-def += -DMAX_RES_1080P
     52 libOmxVdec-def += -DMAX_RES_1080P_EBI
     53 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     54 libOmxVdec-def += -DSMOOTH_STREAMING_DISABLED
     55 libOmxVdec-def += -DH264_PROFILE_LEVEL_CHECK
     56 libOmxVdec-def += -D_MSM8974_
     57 endif
     58 ifeq ($(TARGET_BOARD_PLATFORM),msm8226)
     59 libOmxVdec-def += -DMAX_RES_1080P
     60 libOmxVdec-def += -DMAX_RES_1080P_EBI
     61 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     62 libOmxVdec-def += -D_MSM8974_
     63 endif
     64 ifeq ($(TARGET_BOARD_PLATFORM),apq8084)
     65 libOmxVdec-def += -DMAX_RES_1080P
     66 libOmxVdec-def += -DMAX_RES_1080P_EBI
     67 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     68 libOmxVdec-def += -D_MSM8974_
     69 endif
     70 ifeq ($(TARGET_BOARD_PLATFORM),mpq8092)
     71 libOmxVdec-def += -DMAX_RES_1080P
     72 libOmxVdec-def += -DMAX_RES_1080P_EBI
     73 libOmxVdec-def += -DPROCESS_EXTRADATA_IN_OUTPUT_PORT
     74 libOmxVdec-def += -D_MSM8974_
     75 endif
     76 libOmxVdec-def += -D_ANDROID_ICS_
     77 
     78 ifeq ($(TARGET_USES_ION),true)
     79 libOmxVdec-def += -DUSE_ION
     80 endif
     81 
     82 # ---------------------------------------------------------------------------------
     83 # 			Make the Shared library (libOmxVdec)
     84 # ---------------------------------------------------------------------------------
     85 
     86 include $(CLEAR_VARS)
     87 LOCAL_PATH:= $(ROOT_DIR)
     88 
     89 libmm-vdec-inc          := bionic/libc/include
     90 libmm-vdec-inc          += bionic/libstdc++/include
     91 libmm-vdec-inc          += $(LOCAL_PATH)/vdec/inc
     92 libmm-vdec-inc          += $(OMX_VIDEO_PATH)/vidc/common/inc
     93 libmm-vdec-inc          += hardware/qcom/media/mm-core/inc
     94 #DRM include - Interface which loads the DRM library
     95 libmm-vdec-inc	        += $(OMX_VIDEO_PATH)/DivxDrmDecrypt/inc
     96 libmm-vdec-inc          += hardware/qcom/display/$(TARGET_BOARD_PLATFORM)/libgralloc
     97 libmm-vdec-inc          += frameworks/native/include/media/openmax
     98 libmm-vdec-inc          += frameworks/native/include/media/hardware
     99 libmm-vdec-inc          += $(vdec-inc)
    100 libmm-vdec-inc          += hardware/qcom/display/$(TARGET_BOARD_PLATFORM)/libqdutils
    101 libmm-vdec-inc      += hardware/qcom/media/libc2dcolorconvert
    102 libmm-vdec-inc      += hardware/qcom/display/$(TARGET_BOARD_PLATFORM)/libcopybit
    103 libmm-vdec-inc      += frameworks/av/include/media/stagefright
    104 
    105 
    106 LOCAL_MODULE                    := libOmxVdec
    107 LOCAL_MODULE_TAGS               := optional
    108 LOCAL_CFLAGS                    := $(libOmxVdec-def)
    109 LOCAL_C_INCLUDES                += $(libmm-vdec-inc)
    110 
    111 LOCAL_PRELINK_MODULE    := false
    112 LOCAL_SHARED_LIBRARIES  := liblog libutils libbinder libcutils libdl
    113 
    114 LOCAL_SHARED_LIBRARIES  += libdivxdrmdecrypt
    115 LOCAL_SHARED_LIBRARIES  += libqdMetaData
    116 
    117 LOCAL_SRC_FILES         := vdec/src/frameparser.cpp
    118 LOCAL_SRC_FILES         += vdec/src/h264_utils.cpp
    119 LOCAL_SRC_FILES         += vdec/src/ts_parser.cpp
    120 LOCAL_SRC_FILES         += vdec/src/mp4_utils.cpp
    121 ifneq ($(filter msm8974 msm8610 msm8226 apq8084 mpq8092,$(TARGET_BOARD_PLATFORM)),)
    122 LOCAL_SRC_FILES         += vdec/src/omx_vdec_msm8974.cpp
    123 else
    124 LOCAL_SHARED_LIBRARIES  += libhardware
    125 libmm-vdec-inc          += hardware/qcom/display/$(TARGET_BOARD_PLATFORM)/libhwcomposer
    126 LOCAL_SRC_FILES         += vdec/src/power_module.cpp
    127 LOCAL_SRC_FILES         += vdec/src/omx_vdec.cpp
    128 endif
    129 
    130 LOCAL_SRC_FILES         += common/src/extra_data_handler.cpp
    131 LOCAL_SRC_FILES         += common/src/vidc_color_converter.cpp
    132 
    133 include $(BUILD_SHARED_LIBRARY)
    134 
    135 
    136 # ---------------------------------------------------------------------------------
    137 # 			Make the Shared library (libOmxVdecHevc)
    138 # ---------------------------------------------------------------------------------
    139 
    140 include $(CLEAR_VARS)
    141 LOCAL_PATH:= $(ROOT_DIR)
    142 
    143 ifneq ($(filter msm8974 msm8610 apq8084 mpq8092,$(TARGET_BOARD_PLATFORM)),)
    144 
    145 LOCAL_MODULE                    := libOmxVdecHevc
    146 LOCAL_MODULE_TAGS               := optional
    147 LOCAL_CFLAGS                    := $(libOmxVdec-def)
    148 LOCAL_C_INCLUDES                += $(libmm-vdec-inc)
    149 
    150 LOCAL_PRELINK_MODULE    := false
    151 LOCAL_SHARED_LIBRARIES  := liblog libutils libbinder libcutils libdl
    152 
    153 LOCAL_SHARED_LIBRARIES  += libdivxdrmdecrypt
    154 LOCAL_SHARED_LIBRARIES  += libqdMetaData
    155 
    156 LOCAL_SRC_FILES         := vdec/src/frameparser.cpp
    157 LOCAL_SRC_FILES         += vdec/src/h264_utils.cpp
    158 LOCAL_SRC_FILES         += vdec/src/ts_parser.cpp
    159 LOCAL_SRC_FILES         += vdec/src/mp4_utils.cpp
    160 
    161 LOCAL_SRC_FILES         += vdec/src/omx_vdec_hevc.cpp
    162 LOCAL_SRC_FILES         += vdec/src/hevc_utils.cpp
    163 
    164 LOCAL_SRC_FILES         += common/src/extra_data_handler.cpp
    165 LOCAL_SRC_FILES         += common/src/vidc_color_converter.cpp
    166 
    167 include $(BUILD_SHARED_LIBRARY)
    168 
    169 endif
    170 
    171 # ---------------------------------------------------------------------------------
    172 # 			Make the apps-test (mm-vdec-omx-test)
    173 # ---------------------------------------------------------------------------------
    174 include $(CLEAR_VARS)
    175 
    176 mm-vdec-test-inc    := hardware/qcom/media/mm-core/inc
    177 mm-vdec-test-inc    += $(LOCAL_PATH)/vdec/inc
    178 mm-vdec-test-inc    += $(vdec-inc)
    179 
    180 LOCAL_MODULE                    := mm-vdec-omx-test
    181 LOCAL_MODULE_TAGS               := optional
    182 LOCAL_CFLAGS                    := $(libOmxVdec-def)
    183 LOCAL_C_INCLUDES                := $(mm-vdec-test-inc)
    184 
    185 LOCAL_PRELINK_MODULE      := false
    186 LOCAL_SHARED_LIBRARIES    := libutils libOmxCore libOmxVdec libbinder libcutils
    187 
    188 LOCAL_SRC_FILES           := vdec/src/queue.c
    189 LOCAL_SRC_FILES           += vdec/test/omx_vdec_test.cpp
    190 
    191 include $(BUILD_EXECUTABLE)
    192 
    193 # ---------------------------------------------------------------------------------
    194 # 			Make the driver-test (mm-video-driver-test)
    195 # ---------------------------------------------------------------------------------
    196 include $(CLEAR_VARS)
    197 
    198 mm-vdec-drv-test-inc    := hardware/qcom/media/mm-core/inc
    199 mm-vdec-drv-test-inc    += $(LOCAL_PATH)/vdec/inc
    200 mm-vdec-drv-test-inc    += $(vdec-inc)
    201 
    202 LOCAL_MODULE                    := mm-video-driver-test
    203 LOCAL_MODULE_TAGS               := optional
    204 LOCAL_CFLAGS                    := $(libOmxVdec-def)
    205 LOCAL_C_INCLUDES                := $(mm-vdec-drv-test-inc)
    206 LOCAL_PRELINK_MODULE            := false
    207 
    208 LOCAL_SRC_FILES                 := vdec/src/message_queue.c
    209 LOCAL_SRC_FILES                 += vdec/test/decoder_driver_test.c
    210 
    211 include $(BUILD_EXECUTABLE)
    212 
    213 endif #BUILD_TINY_ANDROID
    214 
    215 # ---------------------------------------------------------------------------------
    216 #                END
    217 # ---------------------------------------------------------------------------------
    218