blob: dea9dc00838f501cf21bd516e2b26e03283006ad [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
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053019ifneq ($(TARGET_USES_GRALLOC1), true)
20 common_flags += -isystem $(display_top)/libgralloc
21else
22 common_flags += -isystem $(display_top)/libgralloc1
23endif
Naseer Ahmedb16edac2012-07-15 23:56:21 -070024
Praveena Pachipulusu734118a2014-12-04 14:53:12 +053025ifeq ($(TARGET_USES_POST_PROCESSING),true)
26 common_flags += -DUSES_POST_PROCESSING
27 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
28endif
29
Naseer Ahmed4d35af82012-07-11 23:43:42 -070030ifeq ($(ARCH_ARM_HAVE_NEON),true)
31 common_flags += -D__ARM_HAVE_NEON
32endif
33
Shalaj Jain103f6662014-09-18 11:47:52 -070034ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
35 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080036endif
37
Shalaj Jain3c490412015-04-22 16:52:03 -070038ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
39 common_flags += -DMASTER_SIDE_CP
40endif
41
Naseer Ahmed4d35af82012-07-11 23:43:42 -070042common_deps :=
43kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070044
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070045# Executed only on QCOM BSPs
Naseer Ahmed34bad082016-04-27 22:35:00 -040046#ifeq ($(TARGET_USES_QCOM_BSP),true)
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070047# Enable QCOM Display features
Naseer Ahmed34bad082016-04-27 22:35:00 -040048# common_flags += -DQTI_BSP
49#endif
50
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040051ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040052# This check is to pick the kernel headers from the right location.
53# If the macro above is defined, we make the assumption that we have the kernel
54# available in the build tree.
55# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
56# failing which, they are picked from bionic.
Naseer Ahmed4d35af82012-07-11 23:43:42 -070057 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
58 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
59endif