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