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