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),msm8992) 38MM_CORE_TARGET = msm8992 39else ifeq ($(TARGET_BOARD_PLATFORM),msm8994) 40MM_CORE_TARGET = msm8994 41else ifeq ($(TARGET_BOARD_PLATFORM),thulium) 42MM_CORE_TARGET = thulium 43else 44MM_CORE_TARGET = default 45endif 46 47#=============================================================================== 48# Deploy the headers that can be exposed 49#=============================================================================== 50 51LOCAL_COPY_HEADERS_TO := mm-core/omxcore 52LOCAL_COPY_HEADERS := inc/OMX_Audio.h 53LOCAL_COPY_HEADERS += inc/OMX_Component.h 54LOCAL_COPY_HEADERS += inc/OMX_ContentPipe.h 55LOCAL_COPY_HEADERS += inc/OMX_Core.h 56LOCAL_COPY_HEADERS += inc/OMX_Image.h 57LOCAL_COPY_HEADERS += inc/OMX_Index.h 58LOCAL_COPY_HEADERS += inc/OMX_IVCommon.h 59LOCAL_COPY_HEADERS += inc/OMX_Other.h 60LOCAL_COPY_HEADERS += inc/OMX_QCOMExtns.h 61LOCAL_COPY_HEADERS += inc/OMX_Types.h 62LOCAL_COPY_HEADERS += inc/OMX_Video.h 63LOCAL_COPY_HEADERS += inc/qc_omx_common.h 64LOCAL_COPY_HEADERS += inc/qc_omx_component.h 65LOCAL_COPY_HEADERS += inc/qc_omx_msg.h 66LOCAL_COPY_HEADERS += inc/QOMX_AudioExtensions.h 67LOCAL_COPY_HEADERS += inc/QOMX_AudioIndexExtensions.h 68LOCAL_COPY_HEADERS += inc/OMX_CoreExt.h 69LOCAL_COPY_HEADERS += inc/QOMX_CoreExtensions.h 70LOCAL_COPY_HEADERS += inc/QOMX_FileFormatExtensions.h 71LOCAL_COPY_HEADERS += inc/QOMX_IVCommonExtensions.h 72LOCAL_COPY_HEADERS += inc/QOMX_SourceExtensions.h 73LOCAL_COPY_HEADERS += inc/QOMX_VideoExtensions.h 74LOCAL_COPY_HEADERS += inc/OMX_IndexExt.h 75LOCAL_COPY_HEADERS += inc/OMX_VideoExt.h 76LOCAL_COPY_HEADERS += inc/QOMX_StreamingExtensions.h 77LOCAL_COPY_HEADERS += inc/QCMediaDefs.h 78LOCAL_COPY_HEADERS += inc/QCMetaData.h 79 80#=============================================================================== 81# LIBRARY for Android apps 82#=============================================================================== 83 84LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 85LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 86LOCAL_MODULE := libOmxCore 87LOCAL_MODULE_TAGS := optional 88LOCAL_SHARED_LIBRARIES := liblog libdl 89LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 90 91LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 92LOCAL_SRC_FILES += src/common/qc_omx_core.c 93ifneq (,$(filter msm8916 msm8994 msm8909 thulium msm8992,$(TARGET_BOARD_PLATFORM))) 94LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table_android.c 95else 96LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c 97endif 98 99include $(BUILD_SHARED_LIBRARY) 100 101#=============================================================================== 102# LIBRARY for command line test apps 103#=============================================================================== 104 105include $(CLEAR_VARS) 106 107LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 108LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 109LOCAL_MODULE := libmm-omxcore 110LOCAL_MODULE_TAGS := optional 111LOCAL_SHARED_LIBRARIES := liblog libdl 112LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 113 114LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 115LOCAL_SRC_FILES += src/common/qc_omx_core.c 116ifneq (,$(filter msm8916 msm8994 msm8909 thulium msm8992,$(TARGET_BOARD_PLATFORM))) 117LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c 118else 119LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c 120endif 121 122include $(BUILD_SHARED_LIBRARY) 123 124endif #BUILD_TINY_ANDROID 125