blob: b189b6970afd3ca972778075faa3dfa8b0a1fca1 [file] [log] [blame]
Naseer Ahmed4d35af82012-07-11 23:43:42 -07001#Common headers
Ethan Chen2548e972014-11-18 14:14:34 -08002common_includes := $(call project-path-for,qcom-display)/libgralloc
3common_includes += $(call project-path-for,qcom-display)/liboverlay
4common_includes += $(call project-path-for,qcom-display)/libcopybit
5common_includes += $(call project-path-for,qcom-display)/libqdutils
6common_includes += $(call project-path-for,qcom-display)/libhwcomposer
7common_includes += $(call project-path-for,qcom-display)/libexternal
8common_includes += $(call project-path-for,qcom-display)/libqservice
9common_includes += $(call project-path-for,qcom-display)/libvirtual
10common_includes += $(call project-path-for,qcom-display)/libhdmi
Naseer Ahmed4d35af82012-07-11 23:43:42 -070011
12ifeq ($(TARGET_USES_POST_PROCESSING),true)
13 common_flags += -DUSES_POST_PROCESSING
Naseer Ahmed58780b92013-07-29 17:41:40 -040014 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
Naseer Ahmed4d35af82012-07-11 23:43:42 -070015endif
16
Naseer Ahmedc55d60a2013-07-11 17:42:26 -040017common_header_export_path := qcom/display
18
Naseer Ahmed4d35af82012-07-11 23:43:42 -070019#Common libraries external to display HAL
20common_libs := liblog libutils libcutils libhardware
21
22#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070023common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Manish Kumar5f100f62014-05-19 03:49:03 -070024common_flags += -Werror -Wno-error=unused-parameter
Naseer Ahmedb16edac2012-07-15 23:56:21 -070025
Naseer Ahmed4d35af82012-07-11 23:43:42 -070026ifeq ($(ARCH_ARM_HAVE_NEON),true)
27 common_flags += -D__ARM_HAVE_NEON
28endif
29
Saurabh Shahc9e21572013-07-16 17:41:48 -070030ifeq ($(call is-board-platform-in-list, msm8974 msm8226 msm8610 apq8084 \
Sivalatha Chakrala10cd49e2013-12-12 22:24:05 +053031 mpq8092 msm_bronze msm8916), true)
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080032 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhan07a2c762013-03-06 15:36:49 -080033 common_flags += -DMDSS_TARGET
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080034endif
35
Sivalatha Chakrala10cd49e2013-12-12 22:24:05 +053036ifeq ($(call is-board-platform-in-list, mpq8092 msm_bronze msm8916), true)
Naseer Ahmed58780b92013-07-29 17:41:40 -040037 #XXX: Replace with check from MDP when available
38 common_flags += -DVPU_TARGET
39endif
40
Alex Naidis32c7efe2016-12-23 00:40:12 +010041ifeq ($(DISPLAY_DEBUG_SWAPINTERVAL),true)
42 common_flags += -DDEBUG_SWAPINTERVAL
43endif
Naseer Ahmed58780b92013-07-29 17:41:40 -040044
Naseer Ahmed74214722013-02-09 08:11:36 -050045# Executed only on QCOM BSPs
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040046ifeq ($(TARGET_USES_QCOM_BSP),true)
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070047# Enable QCOM Display features
Baldev Sahu103b4ac2015-08-13 15:56:08 +053048 common_flags += -DQTI_BSP
Ramkumar Radhakrishnanad938e62013-07-11 19:24:09 -070049endif
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070050ifneq ($(call is-platform-sdk-version-at-least,18),true)
Arun Kumar K.R72921552013-06-12 19:18:37 -070051 common_flags += -DANDROID_JELLYBEAN_MR1=1
52endif
Vivekbalachandar M77b1d902020-02-18 15:25:44 +053053
54kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include