1fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
2fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinifdef HARDWARE_OMX
3fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
4fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinLOCAL_PATH := $(call my-dir)
5fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
6fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(CLEAR_VARS)
7fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
8fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_BRIDGE_INCLUDES := hardware/ti/omap3/dspbridge/inc
9fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
10fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinOMX_DEBUG := 0
11fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinRESOURCE_MANAGER_ENABLED := 0
1229c93f809ad08d6adde10cf1fe95ffafd2a4451cJames DongPERF_INSTRUMENTATION := 0
13fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinPERF_CUSTOMIZABLE := 1
14fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinPERF_READER := 1
15fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
16fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_CFLAGS := -Wall -fpic -pipe -DSTATIC_TABLE -O0 -DOMAP_3430
17fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinifeq ($(RESOURCE_MANAGER_ENABLED),1)
18fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_CFLAGS += -DRESOURCE_MANAGER_ENABLED 
19fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinendif
20fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinifeq ($(PERF_INSTRUMENTATION),1)
21fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_CFLAGS += -D__PERF_INSTRUMENTATION__
22fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinendif
23c5b21bfb410626a503e479a5afa2095902783427Benny Wongifeq ($(BUILD_WITH_TI_AUDIO),1)
24c5b21bfb410626a503e479a5afa2095902783427Benny WongTI_OMX_CFLAGS += -DBUILD_WITH_TI_AUDIO
252eb872487f5d31bc01507d26515208c0f4fedb2d<Benny.Wong@motorola.com>BUILD_AAC_DECODER := 1
262eb872487f5d31bc01507d26515208c0f4fedb2d<Benny.Wong@motorola.com>BUILD_MP3_DECODER := 1
27c5b21bfb410626a503e479a5afa2095902783427Benny WongBUILD_WMA_DECODER := 1
28b65f253fdc60f6208a54911bee793d225f23cdf8James DongBUILD_AMRNB_DECODER := 1
29b65f253fdc60f6208a54911bee793d225f23cdf8James DongBUILD_AMRWB_DECODER := 1
30c5b21bfb410626a503e479a5afa2095902783427Benny Wongendif
31c5b21bfb410626a503e479a5afa2095902783427Benny Wong
32fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_TOP := $(LOCAL_PATH)
33fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_SYSTEM := $(TI_OMX_TOP)/system/src/openmax_il
34fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_VIDEO := $(TI_OMX_TOP)/video/src/openmax_il
35fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_AUDIO := $(TI_OMX_TOP)/audio/src/openmax_il
36fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_IMAGE := $(TI_OMX_TOP)/image/src/openmax_il
37fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
38fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_INCLUDES := \
39fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	$(TI_OMX_SYSTEM)/omx_core/inc
40fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
41fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_COMP_SHARED_LIBRARIES := \
42fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	libdl \
43fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	libbridge \
44fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	libOMX_Core \
45fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	libLCML \
46b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavin	libcutils \
47fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	liblog	
48fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
49fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinifeq ($(PERF_INSTRUMENTATION),1)
50fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_COMP_SHARED_LIBRARIES += \
51fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	libPERF
52fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinendif
53fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
54b65f253fdc60f6208a54911bee793d225f23cdf8James Dongifeq ($(ENABLE_RMPM_STUB),1)
55b65f253fdc60f6208a54911bee793d225f23cdf8James DongTI_OMX_CFLAGS += -D__ENABLE_RMPM_STUB__
56b65f253fdc60f6208a54911bee793d225f23cdf8James Dongendif
57b65f253fdc60f6208a54911bee793d225f23cdf8James Dong
58b65f253fdc60f6208a54911bee793d225f23cdf8James Dongifeq ($(DVFS_ENABLED),1)
59b65f253fdc60f6208a54911bee793d225f23cdf8James DongTI_OMX_CFLAGS += -DDVFS_ENABLED
60b65f253fdc60f6208a54911bee793d225f23cdf8James Dongendif
61b65f253fdc60f6208a54911bee793d225f23cdf8James Dong
62b65f253fdc60f6208a54911bee793d225f23cdf8James Dong
63fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz ZavinTI_OMX_COMP_C_INCLUDES := \
64fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	$(TI_OMX_INCLUDES) \
65fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	$(TI_BRIDGE_INCLUDES) \
66fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	$(TI_OMX_SYSTEM)/lcml/inc \
67fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	$(TI_OMX_SYSTEM)/common/inc \
68fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin	$(TI_OMX_SYSTEM)/perf/inc 
69fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
70fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
71fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinifeq ($(PERF_INSTRUMENTATION),1)
72fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_SYSTEM)/perf/Android.mk
73fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinendif
74b65f253fdc60f6208a54911bee793d225f23cdf8James Dong
75fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinifeq ($(PERF_READER),1)
76fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin#TODO: Implement automatic building
77fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin#include $(TI_OMX_SYSTEM)/perf/reader/Android.mk
78fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinendif
79fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
80b65f253fdc60f6208a54911bee793d225f23cdf8James Dong#call to common omx & system components
81b65f253fdc60f6208a54911bee793d225f23cdf8James Donginclude $(TI_OMX_SYSTEM)/omx_core/src/Android.mk
82b65f253fdc60f6208a54911bee793d225f23cdf8James Donginclude $(TI_OMX_SYSTEM)/lcml/src/Android.mk
83b65f253fdc60f6208a54911bee793d225f23cdf8James Dong
84fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin#call to audio
85fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/aac_dec/src/Android.mk
86fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/aac_enc/src/Android.mk
87fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/aac_enc/tests/Android.mk
88fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/mp3_dec/src/Android.mk
89b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/wma_dec/src/Android.mk
90b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/wma_dec/tests/Android.mk
91b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavin
92b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavin#call to VoIP/speech
93fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/nbamr_dec/src/Android.mk
94fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/nbamr_enc/src/Android.mk
95fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/nbamr_enc/tests/Android.mk
96fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/wbamr_dec/src/Android.mk
97fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/wbamr_enc/src/Android.mk
98fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_AUDIO)/wbamr_enc/tests/Android.mk
99b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g711_dec/src/Android.mk
100b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g711_dec/tests/Android.mk
101b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g711_enc/src/Android.mk
102b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g711_enc/tests/Android.mk
103b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g722_dec/src/Android.mk
104b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g722_dec/tests/Android.mk
105b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g722_enc/src/Android.mk
106b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g722_enc/tests/Android.mk
107b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g726_dec/src/Android.mk
108b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g726_dec/tests/Android.mk
109b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g726_enc/src/Android.mk
110b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g726_enc/tests/Android.mk
111b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g729_dec/src/Android.mk
112b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g729_dec/tests/Android.mk
113b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g729_enc/src/Android.mk
114b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_AUDIO)/g729_enc/tests/Android.mk
115fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin#call to video
116fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_VIDEO)/video_decode/Android.mk
117fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_VIDEO)/video_encode/Android.mk
118b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_VIDEO)/video_encode/test/Android.mk
119b44cdb1b44b144d09e8ec950d1e8e4c280064056Rebecca Schultz Zavininclude $(TI_OMX_VIDEO)/prepost_processor/Android.mk
120b65f253fdc60f6208a54911bee793d225f23cdf8James Dong
121fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin#call to image
122fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_IMAGE)/jpeg_enc/Android.mk
123fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_IMAGE)/jpeg_dec/Android.mk
124fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
125fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin#call to plugin
126fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_TOP)/core_plugin/Android.mk
127fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
128fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin#call to ti_omx_config_parser
129fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavininclude $(TI_OMX_TOP)/ti_omx_config_parser/Android.mk
130fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavin
131fb3766f18a2c18b6f4798a6a631fdb88fcacd1dcRebecca Schultz Zavinendif
132b65f253fdc60f6208a54911bee793d225f23cdf8James Dong
133