common.mk revision b434b98715e4bfe9b8bfb0ac34f33e695aa9891d
1#Common headers
2common_includes := hardware/qcom/display/msm8974/libgralloc
3common_includes += hardware/qcom/display/msm8974/liboverlay
4common_includes += hardware/qcom/display/msm8974/libcopybit
5common_includes += hardware/qcom/display/msm8974/libqdutils
6common_includes += hardware/qcom/display/msm8974/libhwcomposer
7common_includes += hardware/qcom/display/msm8974/libexternal
8common_includes += hardware/qcom/display/msm8974/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 += -Werror
18
19ifeq ($(ARCH_ARM_HAVE_NEON),true)
20    common_flags += -D__ARM_HAVE_NEON
21endif
22
23ifneq ($(filter msm8974 msm8x74 msm8226 msm8x26 msm8610 apq8084,$(TARGET_BOARD_PLATFORM)),)
24    common_flags += -DVENUS_COLOR_FORMAT
25    common_flags += -DMDSS_TARGET
26endif
27
28ifeq ($(TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS), true)
29    common_flags += -DFORCE_HWC_FOR_VIRTUAL_DISPLAYS
30endif
31
32common_deps  :=
33kernel_includes :=
34
35# Executed only on QCOM BSPs
36ifeq ($(TARGET_USES_QCOM_BSP),true)
37# On jb_mr2- dont enable QCOM Display features
38ifneq ($(call is-platform-sdk-version-at-least,18),true)
39# This flag is used to compile out any features that depend on framework changes
40    common_flags += -DQCOM_BSP
41    common_flags += -DANDROID_JELLYBEAN_MR1=1
42endif
43endif
44ifeq ($(call is-vendor-board-platform,QCOM),true)
45# This check is to pick the kernel headers from the right location.
46# If the macro above is defined, we make the assumption that we have the kernel
47# available in the build tree.
48# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
49# failing which, they are picked from bionic.
50    common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
51    kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
52endif
53