1#Common headers 2common_includes := $(LOCAL_PATH)/../libgralloc 3common_includes += $(LOCAL_PATH)/../liboverlay 4common_includes += $(LOCAL_PATH)/../libcopybit 5common_includes += $(LOCAL_PATH)/../libqdutils 6common_includes += $(LOCAL_PATH)/../libhwcomposer 7common_includes += $(LOCAL_PATH)/../libhdmi 8common_includes += $(LOCAL_PATH)/../libqservice 9 10ifeq ($(TARGET_USES_POST_PROCESSING),true) 11 common_flags += -DUSES_POST_PROCESSING 12 common_includes += $(TARGET_OUT_HEADERS)/pp/inc 13endif 14 15common_header_export_path := qcom/display 16 17#Common libraries external to display HAL 18common_libs := liblog libutils libcutils libhardware 19 20#Common C flags 21common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers 22common_flags += -Wconversion -Wall -Werror -Wno-sign-conversion 23 24ifeq ($(ARCH_ARM_HAVE_NEON),true) 25 common_flags += -D__ARM_HAVE_NEON 26endif 27 28ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true) 29 common_flags += -DVENUS_COLOR_FORMAT 30endif 31 32ifeq ($(call is-board-platform-in-list, msm8974 msm8226 msm8610 apq8084 \ 33 mpq8092 msm_bronze msm8916 msm8994), true) 34 common_flags += -DMDSS_TARGET 35endif 36ifeq ($(call is-board-platform-in-list, msm8909), true) 37 common_flags += -DVENUS_COLOR_FORMAT 38 common_flags += -DMDSS_TARGET 39endif 40 41ifeq ($(DISPLAY_DEBUG_SWAPINTERVAL),true) 42 common_flags += -DDEBUG_SWAPINTERVAL 43endif 44 45common_flags += -D__STDC_FORMAT_MACROS 46 47common_deps := 48kernel_includes := 49 50# Executed only on QCOM BSPs 51ifeq ($(TARGET_USES_QCOM_BSP),true) 52# Enable QCOM Display features 53 common_flags += -DQTI_BSP 54 common_includes += $(BOARD_OPENSOURCE_DIR)/display-frameworks/include 55endif 56ifneq ($(call is-platform-sdk-version-at-least,18),true) 57 common_flags += -DANDROID_JELLYBEAN_MR1=1 58endif 59ifeq ($(call is-vendor-board-platform,QCOM),true) 60# This check is to pick the kernel headers from the right location. 61# If the macro above is defined, we make the assumption that we have the kernel 62# available in the build tree. 63# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX 64# failing which, they are picked from bionic. 65 common_deps += $(BOARD_KERNEL_HEADER_DEPENDENCIES) 66 kernel_includes += $(BOARD_KERNEL_HEADER_DIR) 67endif 68 69common_clang_flags := true 70