1ifneq ($(BUILD_TINY_ANDROID),true) 2 3LOCAL_PATH:= $(call my-dir) 4include $(CLEAR_VARS) 5 6OMXCORE_CFLAGS := -g -O3 -DVERBOSE 7OMXCORE_CFLAGS += -O0 -fno-inline -fno-short-enums 8OMXCORE_CFLAGS += -D_ANDROID_ 9OMXCORE_CFLAGS += -U_ENABLE_QC_MSG_LOG_ 10 11#=============================================================================== 12# Figure out the targets 13#=============================================================================== 14 15ifeq ($(TARGET_BOARD_PLATFORM),msm7627a) 16MM_CORE_TARGET = 7627A 17else ifeq ($(TARGET_BOARD_PLATFORM),msm7630_surf) 18MM_CORE_TARGET = 7630 19else ifeq ($(TARGET_BOARD_PLATFORM),msm8660) 20MM_CORE_TARGET = 8660 21#Comment out following line to disable drm.play component 22OMXCORE_CFLAGS += -DENABLE_DRMPLAY 23else ifeq ($(TARGET_BOARD_PLATFORM),msm8960) 24MM_CORE_TARGET = 8960 25else ifeq ($(TARGET_BOARD_PLATFORM),msm8974) 26MM_CORE_TARGET = 8974 27else ifeq ($(TARGET_BOARD_PLATFORM),msm8610) 28MM_CORE_TARGET = 8610 29else ifeq ($(TARGET_BOARD_PLATFORM),msm8226) 30MM_CORE_TARGET = 8226 31else ifeq ($(TARGET_BOARD_PLATFORM),msm8916) 32MM_CORE_TARGET = 8916 33else ifeq ($(TARGET_BOARD_PLATFORM),msm8084) 34MM_CORE_TARGET = 8084 35else ifeq ($(TARGET_BOARD_PLATFORM),mpq8092) 36MM_CORE_TARGET = 8092 37else ifeq ($(TARGET_BOARD_PLATFORM),plutonium) 38MM_CORE_TARGET = plutonium 39else 40MM_CORE_TARGET = default 41endif 42 43#=============================================================================== 44# Deploy the headers that can be exposed 45#=============================================================================== 46 47LOCAL_COPY_HEADERS_TO := mm-core/omxcore 48LOCAL_COPY_HEADERS := inc/OMX_Audio.h 49LOCAL_COPY_HEADERS += inc/OMX_Component.h 50LOCAL_COPY_HEADERS += inc/OMX_ContentPipe.h 51LOCAL_COPY_HEADERS += inc/OMX_Core.h 52LOCAL_COPY_HEADERS += inc/OMX_Image.h 53LOCAL_COPY_HEADERS += inc/OMX_Index.h 54LOCAL_COPY_HEADERS += inc/OMX_IVCommon.h 55LOCAL_COPY_HEADERS += inc/OMX_Other.h 56LOCAL_COPY_HEADERS += inc/OMX_QCOMExtns.h 57LOCAL_COPY_HEADERS += inc/OMX_Types.h 58LOCAL_COPY_HEADERS += inc/OMX_Video.h 59LOCAL_COPY_HEADERS += inc/qc_omx_common.h 60LOCAL_COPY_HEADERS += inc/qc_omx_component.h 61LOCAL_COPY_HEADERS += inc/qc_omx_msg.h 62LOCAL_COPY_HEADERS += inc/QOMX_AudioExtensions.h 63LOCAL_COPY_HEADERS += inc/QOMX_AudioIndexExtensions.h 64LOCAL_COPY_HEADERS += inc/OMX_CoreExt.h 65LOCAL_COPY_HEADERS += inc/QOMX_CoreExtensions.h 66LOCAL_COPY_HEADERS += inc/QOMX_FileFormatExtensions.h 67LOCAL_COPY_HEADERS += inc/QOMX_IVCommonExtensions.h 68LOCAL_COPY_HEADERS += inc/QOMX_SourceExtensions.h 69LOCAL_COPY_HEADERS += inc/QOMX_VideoExtensions.h 70LOCAL_COPY_HEADERS += inc/OMX_IndexExt.h 71LOCAL_COPY_HEADERS += inc/OMX_VideoExt.h 72LOCAL_COPY_HEADERS += inc/QOMX_StreamingExtensions.h 73LOCAL_COPY_HEADERS += inc/QCMediaDefs.h 74LOCAL_COPY_HEADERS += inc/QCMetaData.h 75 76#=============================================================================== 77# LIBRARY for Android apps 78#=============================================================================== 79 80LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 81LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 82LOCAL_PRELINK_MODULE := false 83LOCAL_MODULE := libOmxCore 84LOCAL_MODULE_TAGS := optional 85LOCAL_SHARED_LIBRARIES := liblog libdl 86LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 87 88LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 89LOCAL_SRC_FILES += src/common/qc_omx_core.c 90ifneq (,$(filter msm8916 plutonium,$(TARGET_BOARD_PLATFORM))) 91LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table_android.c 92else 93LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c 94endif 95 96include $(BUILD_SHARED_LIBRARY) 97 98#=============================================================================== 99# LIBRARY for command line test apps 100#=============================================================================== 101 102include $(CLEAR_VARS) 103 104LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 105LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 106LOCAL_PRELINK_MODULE := false 107LOCAL_MODULE := libmm-omxcore 108LOCAL_MODULE_TAGS := optional 109LOCAL_SHARED_LIBRARIES := liblog libdl 110LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 111 112LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 113LOCAL_SRC_FILES += src/common/qc_omx_core.c 114ifneq (,$(filter msm8916 plutonium,$(TARGET_BOARD_PLATFORM))) 115LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c 116else 117LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c 118endif 119 120include $(BUILD_SHARED_LIBRARY) 121 122endif #BUILD_TINY_ANDROID 123