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