blob: 79ba73828c36f8846125a5bc65cffbe673780156 [file] [log] [blame]
#Common headers
common_includes := hardware/qcom/display/displayengine/include/
common_includes += hardware/qcom/display/libgralloc/
common_includes += hardware/qcom/display/libcopybit/
common_header_export_path := qcom/display
#Common libraries external to display HAL
common_libs := liblog libutils libcutils libhardware
#Common C flags
common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
common_flags += -Wconversion -Wall -Werror
common_flags += -Wno-unused-parameter -Wno-unused-variable
ifeq ($(ARCH_ARM_HAVE_NEON),true)
common_flags += -D__ARM_HAVE_NEON
endif
ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
common_flags += -DVENUS_COLOR_FORMAT
endif
ifeq ($(call is-board-platform-in-list, msm8994), true)
common_flags += -DMDSS_TARGET
endif
common_deps :=
kernel_includes :=
ifeq ($(call is-vendor-board-platform,QCOM),true)
# This check is to pick the kernel headers from the right location.
# If the macro above is defined, we make the assumption that we have the kernel
# available in the build tree.
# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
# failing which, they are picked from bionic.
common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
endif