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),msm8998) 16 MM_CORE_TARGET = msm8998 17 else ifeq ($(TARGET_BOARD_PLATFORM),msm8937) 18 MM_CORE_TARGET = 8937 19 else ifeq ($(TARGET_BOARD_PLATFORM),msm8952) 20 MM_CORE_TARGET = 8952 21 else ifeq ($(TARGET_BOARD_PLATFORM),msm8953) 22 MM_CORE_TARGET = msm8953 23 else ifeq ($(TARGET_BOARD_PLATFORM),msm8998) 24 MM_CORE_TARGET = msm8998 25 else ifeq ($(TARGET_BOARD_PLATFORM),sdm660) 26 MM_CORE_TARGET = sdm660 27 else ifeq ($(filter $(TARGET_BOARD_PLATFORM), sdm845),$(TARGET_BOARD_PLATFORM)) 28 MM_CORE_TARGET = sdm845 29 else 30 MM_CORE_TARGET = default 31 endif 32 33 #=============================================================================== 34 # Deploy the headers that can be exposed 35 #=============================================================================== 36 37 LOCAL_COPY_HEADERS_TO := mm-core/omxcore 38 LOCAL_COPY_HEADERS := inc/OMX_Audio.h 39 LOCAL_COPY_HEADERS += inc/OMX_Component.h 40 LOCAL_COPY_HEADERS += inc/OMX_ContentPipe.h 41 LOCAL_COPY_HEADERS += inc/OMX_Core.h 42 LOCAL_COPY_HEADERS += inc/OMX_Image.h 43 LOCAL_COPY_HEADERS += inc/OMX_Index.h 44 LOCAL_COPY_HEADERS += inc/OMX_IVCommon.h 45 LOCAL_COPY_HEADERS += inc/OMX_Other.h 46 LOCAL_COPY_HEADERS += inc/OMX_QCOMExtns.h 47 LOCAL_COPY_HEADERS += inc/OMX_Types.h 48 LOCAL_COPY_HEADERS += inc/OMX_Video.h 49 LOCAL_COPY_HEADERS += inc/qc_omx_common.h 50 LOCAL_COPY_HEADERS += inc/qc_omx_component.h 51 LOCAL_COPY_HEADERS += inc/qc_omx_msg.h 52 LOCAL_COPY_HEADERS += inc/QOMX_AudioExtensions.h 53 LOCAL_COPY_HEADERS += inc/QOMX_AudioIndexExtensions.h 54 LOCAL_COPY_HEADERS += inc/OMX_CoreExt.h 55 LOCAL_COPY_HEADERS += inc/QOMX_CoreExtensions.h 56 LOCAL_COPY_HEADERS += inc/QOMX_FileFormatExtensions.h 57 LOCAL_COPY_HEADERS += inc/QOMX_IVCommonExtensions.h 58 LOCAL_COPY_HEADERS += inc/QOMX_SourceExtensions.h 59 LOCAL_COPY_HEADERS += inc/QOMX_VideoExtensions.h 60 LOCAL_COPY_HEADERS += inc/OMX_IndexExt.h 61 LOCAL_COPY_HEADERS += inc/OMX_VideoExt.h 62 LOCAL_COPY_HEADERS += inc/QOMX_StreamingExtensions.h 63 LOCAL_COPY_HEADERS += inc/QCMediaDefs.h 64 LOCAL_COPY_HEADERS += inc/QCMetaData.h 65 66 #=============================================================================== 67 # LIBRARY for Android apps 68 #=============================================================================== 69 70 LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 71 LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 72 LOCAL_PRELINK_MODULE := false 73 LOCAL_MODULE := libOmxCore 74 LOCAL_MODULE_TAGS := optional 75 LOCAL_VENDOR_MODULE := true 76 LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 77 LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 78 79 LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 80 LOCAL_SRC_FILES += src/common/qc_omx_core.c 81 ifneq (,$(filter msm8996 msm8998 sdm660 sdm845,$(TARGET_BOARD_PLATFORM))) 82 LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table_android.c 83 else 84 LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c 85 endif 86 87 include $(BUILD_SHARED_LIBRARY) 88 89 #=============================================================================== 90 # LIBRARY for command line test apps 91 #=============================================================================== 92 93 include $(CLEAR_VARS) 94 95 LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 96 LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 97 LOCAL_PRELINK_MODULE := false 98 LOCAL_MODULE := libmm-omxcore 99 LOCAL_MODULE_TAGS := optional 100 LOCAL_VENDOR_MODULE := true 101 LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 102 LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 103 104 LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 105 LOCAL_SRC_FILES += src/common/qc_omx_core.c 106 ifneq (,$(filter msm8996 msm8998 sdm660 sdm845,$(TARGET_BOARD_PLATFORM))) 107 LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c 108 else 109 LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c 110 endif 111 112 include $(BUILD_SHARED_LIBRARY) 113 114 endif #BUILD_TINY_ANDROID 115