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_ 10OMXCORE_CFLAGS += -Wno-error 11 12#=============================================================================== 13# Figure out the targets 14#=============================================================================== 15 16ifeq ($(filter $(TARGET_BOARD_PLATFORM), sdm845),$(TARGET_BOARD_PLATFORM)) 17MM_CORE_TARGET = sdm845 18else ifeq ($(filter $(TARGET_BOARD_PLATFORM), msmpeafowl),$(TARGET_BOARD_PLATFORM)) 19MM_CORE_TARGET = msmpeafowl 20else ifeq ($(filter $(TARGET_BOARD_PLATFORM), sdm710),$(TARGET_BOARD_PLATFORM)) 21MM_CORE_TARGET = sdm710 22else ifeq ($(filter $(TARGET_BOARD_PLATFORM), qcs605),$(TARGET_BOARD_PLATFORM)) 23MM_CORE_TARGET = qcs605 24else 25MM_CORE_TARGET = default 26endif 27 28#=============================================================================== 29# Deploy the headers that can be exposed 30#=============================================================================== 31 32LOCAL_COPY_HEADERS_TO := mm-core/omxcore 33LOCAL_COPY_HEADERS := inc/OMX_Audio.h 34LOCAL_COPY_HEADERS += inc/OMX_Component.h 35LOCAL_COPY_HEADERS += inc/OMX_ContentPipe.h 36LOCAL_COPY_HEADERS += inc/OMX_Core.h 37LOCAL_COPY_HEADERS += inc/OMX_Image.h 38LOCAL_COPY_HEADERS += inc/OMX_Index.h 39LOCAL_COPY_HEADERS += inc/OMX_IVCommon.h 40LOCAL_COPY_HEADERS += inc/OMX_Other.h 41LOCAL_COPY_HEADERS += inc/OMX_QCOMExtns.h 42LOCAL_COPY_HEADERS += inc/OMX_Types.h 43LOCAL_COPY_HEADERS += inc/OMX_Video.h 44LOCAL_COPY_HEADERS += inc/qc_omx_common.h 45LOCAL_COPY_HEADERS += inc/qc_omx_component.h 46LOCAL_COPY_HEADERS += inc/qc_omx_msg.h 47LOCAL_COPY_HEADERS += inc/QOMX_AudioExtensions.h 48LOCAL_COPY_HEADERS += inc/QOMX_AudioIndexExtensions.h 49LOCAL_COPY_HEADERS += inc/OMX_CoreExt.h 50LOCAL_COPY_HEADERS += inc/QOMX_CoreExtensions.h 51LOCAL_COPY_HEADERS += inc/QOMX_FileFormatExtensions.h 52LOCAL_COPY_HEADERS += inc/QOMX_IVCommonExtensions.h 53LOCAL_COPY_HEADERS += inc/QOMX_SourceExtensions.h 54LOCAL_COPY_HEADERS += inc/QOMX_VideoExtensions.h 55LOCAL_COPY_HEADERS += inc/OMX_IndexExt.h 56LOCAL_COPY_HEADERS += inc/OMX_VideoExt.h 57LOCAL_COPY_HEADERS += inc/QOMX_StreamingExtensions.h 58LOCAL_COPY_HEADERS += inc/QCMediaDefs.h 59LOCAL_COPY_HEADERS += inc/QCMetaData.h 60 61#=============================================================================== 62# LIBRARY for Android apps 63#=============================================================================== 64 65LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 66LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 67 68LOCAL_HEADER_LIBRARIES := \ 69 libutils_headers 70 71LOCAL_PRELINK_MODULE := false 72LOCAL_MODULE := libOmxCore 73LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 74LOCAL_LICENSE_CONDITIONS := notice 75LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE 76LOCAL_MODULE_TAGS := optional 77LOCAL_VENDOR_MODULE := true 78LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 79ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)),true) 80LOCAL_SHARED_LIBRARIES += libplatformconfig 81endif 82LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 83 84LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 85LOCAL_SRC_FILES += src/common/qc_omx_core.c 86ifneq (,$(filter sdm845 msmpeafowl sdm710 qcs605,$(TARGET_BOARD_PLATFORM))) 87LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table_android.c 88else 89LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c 90endif 91 92include $(BUILD_SHARED_LIBRARY) 93 94#=============================================================================== 95# LIBRARY for command line test apps 96#=============================================================================== 97 98include $(CLEAR_VARS) 99 100LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 101LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 102 103LOCAL_HEADER_LIBRARIES := \ 104 libutils_headers 105 106LOCAL_PRELINK_MODULE := false 107LOCAL_MODULE := libmm-omxcore 108LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 109LOCAL_LICENSE_CONDITIONS := notice 110LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE 111LOCAL_MODULE_TAGS := optional 112LOCAL_VENDOR_MODULE := true 113LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 114ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)),true) 115LOCAL_SHARED_LIBRARIES += libplatformconfig 116endif 117LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 118 119LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 120LOCAL_SRC_FILES += src/common/qc_omx_core.c 121ifneq (,$(filter sdm845 msmpeafowl sdm710 qcs605,$(TARGET_BOARD_PLATFORM))) 122LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c 123else 124LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c 125endif 126 127include $(BUILD_SHARED_LIBRARY) 128 129endif #BUILD_TINY_ANDROID 130