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
22ifeq ($(TARGET_IS_HEADLESS), true)
23    LOCAL_CLANG := false
24else
25    LOCAL_CLANG := true
26endif
27
28ifneq ($(TARGET_USES_GRALLOC1), true)
29    common_flags += -isystem $(display_top)/libgralloc
30else
31    common_flags += -isystem $(display_top)/libgralloc1
32    common_flags += -DUSE_GRALLOC1
33endif
34
35ifeq ($(TARGET_USES_POST_PROCESSING),true)
36    common_flags     += -DUSES_POST_PROCESSING
37    common_includes  += $(TARGET_OUT_HEADERS)/pp/inc
38endif
39
40ifeq ($(ARCH_ARM_HAVE_NEON),true)
41    common_flags += -D__ARM_HAVE_NEON
42endif
43
44ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
45    common_flags += -DVENUS_COLOR_FORMAT
46endif
47
48ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
49    common_flags += -DMASTER_SIDE_CP
50endif
51
52common_flags += -D__STDC_FORMAT_MACROS
53
54common_deps  :=
55kernel_includes :=
56
57# Executed only on QCOM BSPs
58# ifeq ($(TARGET_USES_QCOM_BSP),true)
59# Enable QCOM Display features
60#    common_flags += -DQTI_BSP
61# endif
62
63ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
64# This check is to pick the kernel headers from the right location.
65# If the macro above is defined, we make the assumption that we have the kernel
66# available in the build tree.
67# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
68# failing which, they are picked from bionic.
69    common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
70    kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
71endif
72