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 ($(TARGET_BOARD_PLATFORM),msm7627a) 17MM_CORE_TARGET = 7627A 18else ifeq ($(TARGET_BOARD_PLATFORM),msm7630_surf) 19MM_CORE_TARGET = 7630 20else ifeq ($(TARGET_BOARD_PLATFORM),msm8660) 21MM_CORE_TARGET = 8660 22#Comment out following line to disable drm.play component 23OMXCORE_CFLAGS += -DENABLE_DRMPLAY 24else ifeq ($(TARGET_BOARD_PLATFORM),msm8960) 25MM_CORE_TARGET = 8960 26else ifeq ($(TARGET_BOARD_PLATFORM),msm8974) 27MM_CORE_TARGET = 8974 28else ifeq ($(TARGET_BOARD_PLATFORM),msm8610) 29MM_CORE_TARGET = 8610 30else ifeq ($(TARGET_BOARD_PLATFORM),msm8226) 31MM_CORE_TARGET = 8226 32else ifeq ($(TARGET_BOARD_PLATFORM),msm8916) 33MM_CORE_TARGET = 8916 34else ifeq ($(TARGET_BOARD_PLATFORM),msm8909) 35MM_CORE_TARGET = 8909 36else ifeq ($(TARGET_BOARD_PLATFORM),msm8937) 37MM_CORE_TARGET = 8937 38else ifeq ($(TARGET_BOARD_PLATFORM),apq8084) 39MM_CORE_TARGET = 8084 40else ifeq ($(TARGET_BOARD_PLATFORM),mpq8092) 41MM_CORE_TARGET = 8092 42else ifeq ($(TARGET_BOARD_PLATFORM),msm8992) 43MM_CORE_TARGET = msm8992 44else ifeq ($(TARGET_BOARD_PLATFORM),msm8994) 45MM_CORE_TARGET = msm8994 46else ifeq ($(TARGET_BOARD_PLATFORM),msm8996) 47MM_CORE_TARGET = msm8996 48else ifeq ($(TARGET_BOARD_PLATFORM),msm8952) 49MM_CORE_TARGET = 8952 50else ifeq ($(TARGET_BOARD_PLATFORM),titanium) 51MM_CORE_TARGET = titanium 52else 53MM_CORE_TARGET = default 54endif 55 56#=============================================================================== 57# LIBRARY for Android apps 58#=============================================================================== 59 60LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 61LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 62LOCAL_PRELINK_MODULE := false 63LOCAL_MODULE := libOmxCore 64LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 65LOCAL_LICENSE_CONDITIONS := notice 66LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE 67LOCAL_MODULE_TAGS := optional 68LOCAL_PROPRIETARY_MODULE:= true 69LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 70LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 71 72LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 73LOCAL_SRC_FILES += src/common/qc_omx_core.c 74ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 titanium,$(TARGET_BOARD_PLATFORM))) 75LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table_android.c 76else 77LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c 78endif 79 80include $(BUILD_SHARED_LIBRARY) 81 82include $(CLEAR_VARS) 83LOCAL_MODULE := OmxCore_headers 84LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 85LOCAL_LICENSE_CONDITIONS := notice 86LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE 87LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc 88include $(BUILD_HEADER_LIBRARY) 89 90#=============================================================================== 91# LIBRARY for command line test apps 92#=============================================================================== 93 94include $(CLEAR_VARS) 95 96LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 97LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 98LOCAL_PRELINK_MODULE := false 99LOCAL_MODULE := libmm-omxcore 100LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-MIT 101LOCAL_LICENSE_CONDITIONS := notice 102LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE 103LOCAL_MODULE_TAGS := optional 104LOCAL_PROPRIETARY_MODULE:= true 105LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 106LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 107 108LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 109LOCAL_SRC_FILES += src/common/qc_omx_core.c 110ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 titanium,$(TARGET_BOARD_PLATFORM))) 111LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c 112else 113LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c 114endif 115 116include $(BUILD_SHARED_LIBRARY) 117 118endif #BUILD_TINY_ANDROID 119