common.mk revision e26b2eb3077d9fe4477c7b132efee0b855266ba9
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
10#Common libraries external to display HAL
11common_libs := liblog libutils libcutils libhardware
12
13#Common C flags
14common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
15common_flags += -Werror
16
17ifeq ($(ARCH_ARM_HAVE_NEON),true)
18    common_flags += -D__ARM_HAVE_NEON
19endif
20
21ifneq ($(filter msm8974 msm8x74 msm8226 msm8x26 msm8610 apq8084,$(TARGET_BOARD_PLATFORM)),)
22    common_flags += -DVENUS_COLOR_FORMAT
23    common_flags += -DMDSS_TARGET
24endif
25
26common_deps  :=
27kernel_includes :=
28
29# Executed only on QCOM BSPs
30ifeq ($(TARGET_USES_QCOM_BSP),true)
31# On jb_mr2- dont enable QCOM Display features
32ifneq ($(call is-platform-sdk-version-at-least,18),true)
33# This flag is used to compile out any features that depend on framework changes
34    common_flags += -DQCOM_BSP
35    common_flags += -DANDROID_JELLYBEAN_MR1=1
36endif
37endif
38ifeq ($(call is-vendor-board-platform,QCOM),true)
39# This check is to pick the kernel headers from the right location.
40# If the macro above is defined, we make the assumption that we have the kernel
41# available in the build tree.
42# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
43# failing which, they are picked from bionic.
44    common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
45    kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
46endif
47