1#Common headers 2display_top := $(call my-dir) 3 4use_hwc2 := false 5ifeq ($(TARGET_USES_HWC2), true) 6 use_hwc2 := true 7endif 8 9common_includes := $(display_top)/libqdutils 10common_includes += $(display_top)/libqservice 11common_includes += $(display_top)/libcopybit 12common_includes += $(display_top)/sdm/include 13 14common_header_export_path := qcom/display 15 16#Common libraries external to display HAL 17common_libs := liblog libutils libcutils libhardware 18 19#Common C flags 20common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers 21common_flags += -Wconversion -Wall -Werror 22ifneq ($(TARGET_USES_GRALLOC1), true) 23 common_flags += -isystem $(display_top)/libgralloc 24else 25 common_flags += -isystem $(display_top)/libgralloc1 26endif 27 28ifeq ($(TARGET_USES_POST_PROCESSING),true) 29 common_flags += -DUSES_POST_PROCESSING 30 common_includes += $(TARGET_OUT_HEADERS)/pp/inc 31endif 32 33ifeq ($(ARCH_ARM_HAVE_NEON),true) 34 common_flags += -D__ARM_HAVE_NEON 35endif 36 37ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true) 38 common_flags += -DVENUS_COLOR_FORMAT 39endif 40 41ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true) 42 common_flags += -DMASTER_SIDE_CP 43endif 44 45common_deps := 46kernel_includes := 47 48# Executed only on QCOM BSPs 49# ifeq ($(TARGET_USES_QCOM_BSP),true) 50# Enable QCOM Display features 51# common_flags += -DQTI_BSP 52# endif 53 54ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 55# This check is to pick the kernel headers from the right location. 56# If the macro above is defined, we make the assumption that we have the kernel 57# available in the build tree. 58# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX 59# failing which, they are picked from bionic. 60 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 61 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 62endif 63