1#Common headers 2display_top := $(call my-dir) 3 4common_includes := $(display_top)/libqdutils 5common_includes += $(display_top)/libqservice 6common_includes += $(display_top)/libcopybit 7common_includes += $(display_top)/sdm/include 8 9common_header_export_path := qcom/display 10 11#Common libraries external to display HAL 12common_libs := liblog libutils libcutils libhardware 13 14#Common C flags 15common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers 16common_flags += -Wconversion -Wall -Werror 17common_flags += -isystem $(display_top)/libgralloc 18 19ifeq ($(TARGET_USES_POST_PROCESSING),true) 20 common_flags += -DUSES_POST_PROCESSING 21 common_includes += $(TARGET_OUT_HEADERS)/pp/inc 22endif 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, $(MASTER_SIDE_CP_TARGET_LIST)), true) 33 common_flags += -DMASTER_SIDE_CP 34endif 35 36common_deps := 37kernel_includes := 38 39# Executed only on QCOM BSPs 40ifeq ($(TARGET_USES_QCOM_BSP),true) 41# Enable QCOM Display features 42 common_flags += -DQCOM_BSP 43endif 44ifneq ($(call is-platform-sdk-version-at-least,18),true) 45 common_flags += -DANDROID_JELLYBEAN_MR1=1 46endif 47 48ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) 49# This check is to pick the kernel headers from the right location. 50# If the macro above is defined, we make the assumption that we have the kernel 51# available in the build tree. 52# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX 53# failing which, they are picked from bionic. 54 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 55 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 56endif 57