blob: 79ba73828c36f8846125a5bc65cffbe673780156 [file] [log] [blame]
Dileep Marchya96db2582014-10-27 20:58:37 -07001#Common headers
2common_includes := hardware/qcom/display/displayengine/include/
3common_includes += hardware/qcom/display/libgralloc/
4common_includes += hardware/qcom/display/libcopybit/
5
6common_header_export_path := qcom/display
7
8#Common libraries external to display HAL
9common_libs := liblog libutils libcutils libhardware
10
11#Common C flags
12common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
13common_flags += -Wconversion -Wall -Werror
14common_flags += -Wno-unused-parameter -Wno-unused-variable
15
16ifeq ($(ARCH_ARM_HAVE_NEON),true)
17 common_flags += -D__ARM_HAVE_NEON
18endif
19
20ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
21 common_flags += -DVENUS_COLOR_FORMAT
22endif
23
24ifeq ($(call is-board-platform-in-list, msm8994), true)
25 common_flags += -DMDSS_TARGET
26endif
27
28common_deps :=
29kernel_includes :=
30
31ifeq ($(call is-vendor-board-platform,QCOM),true)
32# This check is to pick the kernel headers from the right location.
33# If the macro above is defined, we make the assumption that we have the kernel
34# available in the build tree.
35# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
36# failing which, they are picked from bionic.
37 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
38 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
39endif