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)
29ifneq ($(TARGET_SUPPORTS_WEARABLES), true)
30    common_flags += -DVENUS_COLOR_FORMAT
31endif
32endif
33
34ifeq ($(call is-board-platform-in-list, msm8974 msm8226 msm8610 apq8084 \
35        mpq8092 msm_bronze msm8916 msm8994), true)
36    common_flags += -DMDSS_TARGET
37endif
38ifeq ($(call is-board-platform-in-list, msm8909), true)
39ifneq ($(TARGET_SUPPORTS_WEARABLES), true)
40    common_flags += -DVENUS_COLOR_FORMAT
41endif
42    common_flags += -DMDSS_TARGET
43endif
44
45common_deps  :=
46kernel_includes :=
47
48# Executed only on QCOM BSPs
49ifeq ($(TARGET_USES_QCOM_BSP),true)
50# Enable QCOM Display features
51    common_flags += -DQTI_BSP
52    common_includes += $(BOARD_OPENSOURCE_DIR)/display-frameworks/include
53endif
54ifneq ($(call is-platform-sdk-version-at-least,18),true)
55    common_flags += -DANDROID_JELLYBEAN_MR1=1
56endif
57ifeq ($(call is-vendor-board-platform,QCOM),true)
58# This check is to pick the kernel headers from the right location.
59# If the macro above is defined, we make the assumption that we have the kernel
60# available in the build tree.
61# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
62# failing which, they are picked from bionic.
63    common_deps += $(BOARD_KERNEL_HEADER_DEPENDENCIES)
64    kernel_includes += $(BOARD_KERNEL_HEADER_DIR)
65endif
66
67common_clang_flags := true
68