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_MODULE_TAGS := optional 65LOCAL_PROPRIETARY_MODULE:= true 66LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 67LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 68 69LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 70LOCAL_SRC_FILES += src/common/qc_omx_core.c 71ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 titanium,$(TARGET_BOARD_PLATFORM))) 72LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table_android.c 73else 74LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c 75endif 76 77include $(BUILD_SHARED_LIBRARY) 78 79include $(CLEAR_VARS) 80LOCAL_MODULE := OmxCore_headers 81LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc 82include $(BUILD_HEADER_LIBRARY) 83 84#=============================================================================== 85# LIBRARY for command line test apps 86#=============================================================================== 87 88include $(CLEAR_VARS) 89 90LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common 91LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc 92LOCAL_PRELINK_MODULE := false 93LOCAL_MODULE := libmm-omxcore 94LOCAL_MODULE_TAGS := optional 95LOCAL_PROPRIETARY_MODULE:= true 96LOCAL_SHARED_LIBRARIES := liblog libdl libcutils 97LOCAL_CFLAGS := $(OMXCORE_CFLAGS) 98 99LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp 100LOCAL_SRC_FILES += src/common/qc_omx_core.c 101ifneq (,$(filter msm8916 msm8994 msm8909 msm8937 msm8996 msm8992 msm8952 titanium,$(TARGET_BOARD_PLATFORM))) 102LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/registry_table.c 103else 104LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c 105endif 106 107include $(BUILD_SHARED_LIBRARY) 108 109endif #BUILD_TINY_ANDROID 110