blob: 62bd128670c88aa51baecfc9f3e41476b88350dd [file] [log] [blame]
Naseer Ahmed4d35af82012-07-11 23:43:42 -07001#Common headers
Naseer Ahmedd68b47d2016-04-05 17:40:02 -04002display_top := $(call my-dir)
3
Naseer Ahmedb92e73f2016-03-12 02:03:48 -05004use_hwc2 := false
5
Naseer Ahmedd68b47d2016-04-05 17:40:02 -04006common_includes := $(display_top)/libqdutils
7common_includes += $(display_top)/libqservice
8common_includes += $(display_top)/libcopybit
9common_includes += $(display_top)/sdm/include
Naseer Ahmed4d35af82012-07-11 23:43:42 -070010
Naseer Ahmedc55d60a2013-07-11 17:42:26 -040011common_header_export_path := qcom/display
12
Naseer Ahmed4d35af82012-07-11 23:43:42 -070013#Common libraries external to display HAL
14common_libs := liblog libutils libcutils libhardware
15
16#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070017common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmed9eb5e092014-09-25 13:24:44 -040018common_flags += -Wconversion -Wall -Werror
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040019common_flags += -isystem $(display_top)/libgralloc
Naseer Ahmedb16edac2012-07-15 23:56:21 -070020
Praveena Pachipulusu734118a2014-12-04 14:53:12 +053021ifeq ($(TARGET_USES_POST_PROCESSING),true)
22 common_flags += -DUSES_POST_PROCESSING
23 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
24endif
25
Naseer Ahmed4d35af82012-07-11 23:43:42 -070026ifeq ($(ARCH_ARM_HAVE_NEON),true)
27 common_flags += -D__ARM_HAVE_NEON
28endif
29
Shalaj Jain103f6662014-09-18 11:47:52 -070030ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
31 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080032endif
33
Shalaj Jain3c490412015-04-22 16:52:03 -070034ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
35 common_flags += -DMASTER_SIDE_CP
36endif
37
Naseer Ahmed4d35af82012-07-11 23:43:42 -070038common_deps :=
39kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070040
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070041# Executed only on QCOM BSPs
Naseer Ahmed34bad082016-04-27 22:35:00 -040042#ifeq ($(TARGET_USES_QCOM_BSP),true)
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070043# Enable QCOM Display features
Naseer Ahmed34bad082016-04-27 22:35:00 -040044# common_flags += -DQTI_BSP
45#endif
46
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040047ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040048# This check is to pick the kernel headers from the right location.
49# If the macro above is defined, we make the assumption that we have the kernel
50# available in the build tree.
51# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
52# failing which, they are picked from bionic.
Naseer Ahmed4d35af82012-07-11 23:43:42 -070053 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
54 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
55endif