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