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