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_LICENSE_KINDS             := SPDX-license-identifier-BSD
69LOCAL_LICENSE_CONDITIONS        := notice
70LOCAL_MODULE_TAGS               := optional
71LOCAL_CFLAGS                    := $(libOmxVdec-def)
72LOCAL_C_INCLUDES                += $(libmm-vdec-inc)
73
74LOCAL_SHARED_LIBRARIES  := liblog libutils libbinder libcutils libdl
75
76LOCAL_SHARED_LIBRARIES  += libdivxdrmdecrypt
77LOCAL_SHARED_LIBRARIES += libqservice
78LOCAL_SHARED_LIBRARIES += libqdMetaData
79
80LOCAL_SRC_FILES         := vdec/src/frameparser.cpp
81LOCAL_SRC_FILES         += vdec/src/h264_utils.cpp
82LOCAL_SRC_FILES         += vdec/src/ts_parser.cpp
83LOCAL_SRC_FILES         += vdec/src/mp4_utils.cpp
84LOCAL_SRC_FILES         += vdec/src/omx_vdec.cpp
85LOCAL_SRC_FILES         += common/src/extra_data_handler.cpp
86LOCAL_SRC_FILES         += common/src/vidc_color_converter.cpp
87
88LOCAL_CFLAGS            += -Wno-error
89
90include $(BUILD_SHARED_LIBRARY)
91
92# ---------------------------------------------------------------------------------
93# 			Make the apps-test (mm-vdec-omx-test)
94# ---------------------------------------------------------------------------------
95include $(CLEAR_VARS)
96
97mm-vdec-test-inc    := hardware/qcom/media/msm8974/mm-core/inc
98mm-vdec-test-inc    += $(LOCAL_PATH)/vdec/inc
99
100LOCAL_MODULE                    := mm-vdec-omx-test
101LOCAL_LICENSE_KINDS             := SPDX-license-identifier-BSD
102LOCAL_LICENSE_CONDITIONS        := notice
103LOCAL_MODULE_TAGS               := optional
104LOCAL_CFLAGS                    := $(libOmxVdec-def)
105LOCAL_C_INCLUDES                := $(mm-vdec-test-inc)
106
107LOCAL_SHARED_LIBRARIES    := libutils liblog libOmxCore libOmxVdec libbinder
108
109LOCAL_SRC_FILES           := vdec/src/queue.c
110LOCAL_SRC_FILES           += vdec/test/omx_vdec_test.cpp
111
112include $(BUILD_EXECUTABLE)
113
114# ---------------------------------------------------------------------------------
115# 			Make the driver-test (mm-video-driver-test)
116# ---------------------------------------------------------------------------------
117include $(CLEAR_VARS)
118
119mm-vdec-drv-test-inc    := hardware/qcom/media/msm8974/mm-core/inc
120mm-vdec-drv-test-inc    += $(LOCAL_PATH)/vdec/inc
121
122LOCAL_MODULE                    := mm-video-driver-test
123LOCAL_LICENSE_KINDS             := SPDX-license-identifier-BSD
124LOCAL_LICENSE_CONDITIONS        := notice
125LOCAL_MODULE_TAGS               := optional
126LOCAL_CFLAGS                    := $(libOmxVdec-def)
127LOCAL_C_INCLUDES                := $(mm-vdec-drv-test-inc)
128
129LOCAL_SRC_FILES                 := vdec/src/message_queue.c
130LOCAL_SRC_FILES                 += vdec/test/decoder_driver_test.c
131
132include $(BUILD_EXECUTABLE)
133
134endif #BUILD_TINY_ANDROID
135
136# ---------------------------------------------------------------------------------
137#                END
138# ---------------------------------------------------------------------------------
139