1 ROOT_DIR := $(call my-dir) 2 3 include $(CLEAR_VARS) 4 LOCAL_PATH:= $(ROOT_DIR) 5 6 # --------------------------------------------------------------------------------- 7 # Common definitons 8 # --------------------------------------------------------------------------------- 9 10 libmm-vidc-def := -g -O3 -Dlrintf=_ffix_r 11 libmm-vidc-def += -D__align=__alignx 12 libmm-vidc-def += -D__alignx\(x\)=__attribute__\(\(__aligned__\(x\)\)\) 13 libmm-vidc-def += -DT_ARM 14 libmm-vidc-def += -Dinline=__inline 15 libmm-vidc-def += -D_ANDROID_ 16 libmm-vidc-def += -Werror 17 libmm-vidc-def += -D_ANDROID_ICS_ 18 19 # --------------------------------------------------------------------------------- 20 # Make the Shared library (libOmxVidcCommon) 21 # --------------------------------------------------------------------------------- 22 23 libmm-vidc-inc := $(LOCAL_PATH)/inc 24 libmm-vidc-inc += $(QCOM_MEDIA_ROOT)/mm-core/inc 25 libmm-vidc-inc += $(TARGET_OUT_HEADERS)/qcom/display 26 libmm-vidc-inc += $(QCOM_MEDIA_ROOT)/libc2dcolorconvert 27 libmm-vidc-inc += $(TOP)/frameworks/av/include/media/stagefright 28 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 29 libmm-vidc-inc += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 30 endif 31 32 LOCAL_MODULE := libOmxVidcCommon 33 LOCAL_MODULE_TAGS := optional 34 LOCAL_CFLAGS := $(libmm-vidc-def) 35 LOCAL_C_INCLUDES := $(libmm-vidc-inc) 36 37 LOCAL_PRELINK_MODULE := false 38 LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libdl 39 40 LOCAL_SRC_FILES := src/extra_data_handler.cpp 41 LOCAL_SRC_FILES += src/vidc_color_converter.cpp 42 43 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 44 LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 45 endif 46 47 include $(BUILD_STATIC_LIBRARY) 48 49 # --------------------------------------------------------------------------------- 50 # END 51 # --------------------------------------------------------------------------------- 52