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 ($(filter $(TARGET_BOARD_PLATFORM), msmnile sm8150),$(TARGET_BOARD_PLATFORM)) 16OMXCORE_CFLAGS += -D_NILE_ 17else ifeq ($(filter $(TARGET_BOARD_PLATFORM), $(MSMSTEPPE)),$(TARGET_BOARD_PLATFORM)) 18OMXCORE_CFLAGS += -D_STEPPE_ 19else ifeq ($(filter $(TARGET_BOARD_PLATFORM), $(TRINKET)),$(TARGET_BOARD_PLATFORM)) 20OMXCORE_CFLAGS += -D_TRINKET_ 21else ifeq ($(filter $(TARGET_BOARD_PLATFORM), atoll),$(TARGET_BOARD_PLATFORM)) 22OMXCORE_CFLAGS += -D_ATOLL_ 23else 24OMXCORE_CFLAGS += -D_DEFAULT_ 25endif 26 27ifeq ($(call is-platform-sdk-version-at-least,27),true) # O-MR1 28OMXCORE_CFLAGS += -D_ANDROID_O_MR1_DIVX_CHANGES 29endif 30 31#=============================================================================== 32# Deploy the headers that can be exposed 33#=============================================================================== 34 35LOCAL_COPY_HEADERS_TO := mm-core/omxcore 36LOCAL_COPY_HEADERS := inc/OMX_Audio.h 37LOCAL_COPY_HEADERS += inc/OMX_Component.h 38LOCAL_COPY_HEADERS += inc/OMX_ContentPipe.h 39LOCAL_COPY_HEADERS += inc/OMX_Core.h 40LOCAL_COPY_HEADERS += inc/OMX_Image.h 41LOCAL_COPY_HEADERS += inc/OMX_Index.h 42LOCAL_COPY_HEADERS += inc/OMX_IVCommon.h 43LOCAL_COPY_HEADERS += inc/OMX_Other.h 44LOCAL_COPY_HEADERS += inc/OMX_QCOMExtns.h 45LOCAL_COPY_HEADERS += inc/OMX_Types.h 46LOCAL_COPY_HEADERS += inc/OMX_Video.h 47LOCAL_COPY_HEADERS += inc/qc_omx_common.h 48LOCAL_COPY_HEADERS += inc/qc_omx_component.h 49LOCAL_COPY_HEADERS += inc/qc_omx_msg.h 50LOCAL_COPY_HEADERS += inc/QOMX_AudioExtensions.h 51LOCAL_COPY_HEADERS += inc/QOMX_AudioIndexExtensions.h 52LOCAL_COPY_HEADERS += inc/OMX_CoreExt.h 53LOCAL_COPY_HEADERS += inc/QOMX_CoreExtensions.h 54LOCAL_COPY_HEADERS += inc/QOMX_FileFormatExtensions.h 55LOCAL_COPY_HEADERS += inc/QOMX_IVCommonExtensions.h 56LOCAL_COPY_HEADERS += inc/QOMX_SourceExtensions.h 57LOCAL_COPY_HEADERS += inc/QOMX_VideoExtensions.h 58LOCAL_COPY_HEADERS += inc/OMX_IndexExt.h 59LOCAL_COPY_HEADERS += inc/OMX_VideoExt.h 60LOCAL_COPY_HEADERS += inc/QOMX_StreamingExtensions.h 61LOCAL_COPY_HEADERS += inc/QCMediaDefs.h 62LOCAL_COPY_HEADERS += inc/QCMetaData.h 63 64#=============================================================================== 65# LIBRARY for Android apps 66#=============================================================================== 67 68LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 69LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/sm8150/media/libplatformconfig 70 71LOCAL_HEADER_LIBRARIES := \ 72 libutils_headers \ 73 libomxcore_headers 74 75LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libomxcore_headers 76 77LOCAL_PRELINK_MODULE := false 78LOCAL_MODULE := libOmxCore 79LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 80LOCAL_LICENSE_CONDITIONS := notice 81LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 82LOCAL_MODULE_TAGS := optional 83LOCAL_VENDOR_MODULE := true 84LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 85ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)),true) 86LOCAL_SHARED_LIBRARIES += libplatformconfig 87endif 88LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 89 90LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 91LOCAL_SRC_FILES += src/common/qc_omx_core.c 92ifneq (,$(filter msmnile sm8150 $(MSMSTEPPE) $(TRINKET),$(TARGET_BOARD_PLATFORM))) 93LOCAL_SRC_FILES += src/registry_table_android.c 94else 95LOCAL_SRC_FILES += src/qc_registry_table_android.c 96endif 97 98include $(BUILD_SHARED_LIBRARY) 99 100#=============================================================================== 101# LIBRARY for command line test apps 102#=============================================================================== 103 104include $(CLEAR_VARS) 105 106LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 107LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/sm8150/media/libplatformconfig 108 109LOCAL_HEADER_LIBRARIES := \ 110 libutils_headers \ 111 libomxcore_headers 112 113LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libomxcore_headers 114 115LOCAL_PRELINK_MODULE := false 116LOCAL_MODULE := libmm-omxcore 117LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 118LOCAL_LICENSE_CONDITIONS := notice 119LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 120LOCAL_MODULE_TAGS := optional 121LOCAL_VENDOR_MODULE := true 122LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 123ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)),true) 124LOCAL_SHARED_LIBRARIES += libplatformconfig 125endif 126LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 127 128LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 129LOCAL_SRC_FILES += src/common/qc_omx_core.c 130ifneq (,$(filter msmnile sdmshrike sm8150 $(MSMSTEPPE) $(TRINKET) atoll,$(TARGET_BOARD_PLATFORM))) 131LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c 132else 133LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c 134endif 135 136include $(BUILD_SHARED_LIBRARY) 137 138include $(CLEAR_VARS) 139 140LOCAL_MODULE := libomxcore_headers 141LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 142LOCAL_LICENSE_CONDITIONS := notice 143LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 144LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc 145LOCAL_VENDOR_MODULE := true 146 147include $(BUILD_HEADER_LIBRARY) 148 149endif #BUILD_TINY_ANDROID 150