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