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