• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10common_header_export_path := qcom/display
11
12#Common libraries external to display HAL
13common_libs := liblog libutils libcutils libhardware
14
15#Common C flags
16common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
17common_flags += -Wconversion -Wall -Werror
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
28common_flags += -DVENUS_COLOR_FORMAT
29common_flags += -DMDSS_TARGET
30
31ifeq ($(DISPLAY_DEBUG_SWAPINTERVAL),true)
32    common_flags += -DDEBUG_SWAPINTERVAL
33endif
34
35common_flags += -D__STDC_FORMAT_MACROS
36
37common_deps  :=
38kernel_includes :=
39
40# Executed only on QCOM BSPs
41ifeq ($(TARGET_USES_QCOM_BSP),true)
42# Enable QCOM Display features
43    common_flags += -DQCOM_BSP
44endif
45ifneq ($(call is-platform-sdk-version-at-least,18),true)
46    common_flags += -DANDROID_JELLYBEAN_MR1=1
47endif
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