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