• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2ifdef HARDWARE_OMX
3
4LOCAL_PATH := $(call my-dir)
5
6include $(CLEAR_VARS)
7
8TI_BRIDGE_INCLUDES := hardware/ti/omap3/dspbridge/inc
9
10OMX_DEBUG := 0
11RESOURCE_MANAGER_ENABLED := 0
12PERF_INSTRUMENTATION := 0
13PERF_CUSTOMIZABLE := 1
14PERF_READER := 1
15
16TI_OMX_CFLAGS := -Wall -fpic -pipe -DSTATIC_TABLE -O0 -DOMAP_3430
17ifeq ($(RESOURCE_MANAGER_ENABLED),1)
18TI_OMX_CFLAGS += -DRESOURCE_MANAGER_ENABLED
19endif
20ifeq ($(PERF_INSTRUMENTATION),1)
21TI_OMX_CFLAGS += -D__PERF_INSTRUMENTATION__
22endif
23ifeq ($(BUILD_WITH_TI_AUDIO),1)
24TI_OMX_CFLAGS += -DBUILD_WITH_TI_AUDIO
25BUILD_AAC_DECODER := 1
26BUILD_MP3_DECODER := 1
27BUILD_WMA_DECODER := 1
28BUILD_AMRNB_DECODER := 1
29BUILD_AMRWB_DECODER := 1
30endif
31
32TI_OMX_TOP := $(LOCAL_PATH)
33TI_OMX_SYSTEM := $(TI_OMX_TOP)/system/src/openmax_il
34TI_OMX_VIDEO := $(TI_OMX_TOP)/video/src/openmax_il
35TI_OMX_AUDIO := $(TI_OMX_TOP)/audio/src/openmax_il
36TI_OMX_IMAGE := $(TI_OMX_TOP)/image/src/openmax_il
37
38TI_OMX_INCLUDES := \
39	$(TI_OMX_SYSTEM)/omx_core/inc
40
41TI_OMX_COMP_SHARED_LIBRARIES := \
42	libdl \
43	libbridge \
44	libOMX_Core \
45	libLCML \
46	libcutils \
47	liblog
48
49ifeq ($(PERF_INSTRUMENTATION),1)
50TI_OMX_COMP_SHARED_LIBRARIES += \
51	libPERF
52endif
53
54ifeq ($(ENABLE_RMPM_STUB),1)
55TI_OMX_CFLAGS += -D__ENABLE_RMPM_STUB__
56endif
57
58ifeq ($(DVFS_ENABLED),1)
59TI_OMX_CFLAGS += -DDVFS_ENABLED
60endif
61
62
63TI_OMX_COMP_C_INCLUDES := \
64	$(TI_OMX_INCLUDES) \
65	$(TI_BRIDGE_INCLUDES) \
66	$(TI_OMX_SYSTEM)/lcml/inc \
67	$(TI_OMX_SYSTEM)/common/inc \
68	$(TI_OMX_SYSTEM)/perf/inc
69
70
71ifeq ($(PERF_INSTRUMENTATION),1)
72include $(TI_OMX_SYSTEM)/perf/Android.mk
73endif
74
75ifeq ($(PERF_READER),1)
76#TODO: Implement automatic building
77#include $(TI_OMX_SYSTEM)/perf/reader/Android.mk
78endif
79
80#call to common omx & system components
81include $(TI_OMX_SYSTEM)/omx_core/src/Android.mk
82include $(TI_OMX_SYSTEM)/lcml/src/Android.mk
83
84#call to audio
85include $(TI_OMX_AUDIO)/aac_dec/src/Android.mk
86include $(TI_OMX_AUDIO)/aac_enc/src/Android.mk
87include $(TI_OMX_AUDIO)/aac_enc/tests/Android.mk
88include $(TI_OMX_AUDIO)/mp3_dec/src/Android.mk
89include $(TI_OMX_AUDIO)/wma_dec/src/Android.mk
90include $(TI_OMX_AUDIO)/wma_dec/tests/Android.mk
91
92#call to VoIP/speech
93include $(TI_OMX_AUDIO)/nbamr_dec/src/Android.mk
94include $(TI_OMX_AUDIO)/nbamr_enc/src/Android.mk
95include $(TI_OMX_AUDIO)/nbamr_enc/tests/Android.mk
96include $(TI_OMX_AUDIO)/wbamr_dec/src/Android.mk
97include $(TI_OMX_AUDIO)/wbamr_enc/src/Android.mk
98include $(TI_OMX_AUDIO)/wbamr_enc/tests/Android.mk
99include $(TI_OMX_AUDIO)/g711_dec/src/Android.mk
100include $(TI_OMX_AUDIO)/g711_dec/tests/Android.mk
101include $(TI_OMX_AUDIO)/g711_enc/src/Android.mk
102include $(TI_OMX_AUDIO)/g711_enc/tests/Android.mk
103include $(TI_OMX_AUDIO)/g722_dec/src/Android.mk
104include $(TI_OMX_AUDIO)/g722_dec/tests/Android.mk
105include $(TI_OMX_AUDIO)/g722_enc/src/Android.mk
106include $(TI_OMX_AUDIO)/g722_enc/tests/Android.mk
107include $(TI_OMX_AUDIO)/g726_dec/src/Android.mk
108include $(TI_OMX_AUDIO)/g726_dec/tests/Android.mk
109include $(TI_OMX_AUDIO)/g726_enc/src/Android.mk
110include $(TI_OMX_AUDIO)/g726_enc/tests/Android.mk
111include $(TI_OMX_AUDIO)/g729_dec/src/Android.mk
112include $(TI_OMX_AUDIO)/g729_dec/tests/Android.mk
113include $(TI_OMX_AUDIO)/g729_enc/src/Android.mk
114include $(TI_OMX_AUDIO)/g729_enc/tests/Android.mk
115#call to video
116include $(TI_OMX_VIDEO)/video_decode/Android.mk
117include $(TI_OMX_VIDEO)/video_encode/Android.mk
118include $(TI_OMX_VIDEO)/video_encode/test/Android.mk
119include $(TI_OMX_VIDEO)/prepost_processor/Android.mk
120
121#call to image
122include $(TI_OMX_IMAGE)/jpeg_enc/Android.mk
123include $(TI_OMX_IMAGE)/jpeg_dec/Android.mk
124
125#call to plugin
126include $(TI_OMX_TOP)/core_plugin/Android.mk
127
128#call to ti_omx_config_parser
129include $(TI_OMX_TOP)/ti_omx_config_parser/Android.mk
130
131endif
132
133