blob: 6b3e2e9cd1b92b8cc1d17004eb614b58d34c941d [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
Naseer Ahmedad8ae632016-06-09 16:48:22 -04005ifeq ($(TARGET_USES_HWC2), true)
6 use_hwc2 := true
7endif
Naseer Ahmedb92e73f2016-03-12 02:03:48 -05008
Naseer Ahmedd68b47d2016-04-05 17:40:02 -04009common_includes := $(display_top)/libqdutils
10common_includes += $(display_top)/libqservice
11common_includes += $(display_top)/libcopybit
12common_includes += $(display_top)/sdm/include
Naseer Ahmed4d35af82012-07-11 23:43:42 -070013
Naseer Ahmedc55d60a2013-07-11 17:42:26 -040014common_header_export_path := qcom/display
15
Naseer Ahmed4d35af82012-07-11 23:43:42 -070016#Common libraries external to display HAL
17common_libs := liblog libutils libcutils libhardware
18
19#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070020common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmed9eb5e092014-09-25 13:24:44 -040021common_flags += -Wconversion -Wall -Werror
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053022ifneq ($(TARGET_USES_GRALLOC1), true)
23 common_flags += -isystem $(display_top)/libgralloc
24else
25 common_flags += -isystem $(display_top)/libgralloc1
26endif
Naseer Ahmedb16edac2012-07-15 23:56:21 -070027
Praveena Pachipulusu734118a2014-12-04 14:53:12 +053028ifeq ($(TARGET_USES_POST_PROCESSING),true)
29 common_flags += -DUSES_POST_PROCESSING
30 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
31endif
32
Naseer Ahmed4d35af82012-07-11 23:43:42 -070033ifeq ($(ARCH_ARM_HAVE_NEON),true)
34 common_flags += -D__ARM_HAVE_NEON
35endif
36
Shalaj Jain103f6662014-09-18 11:47:52 -070037ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
38 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080039endif
40
Shalaj Jain3c490412015-04-22 16:52:03 -070041ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
42 common_flags += -DMASTER_SIDE_CP
43endif
44
Naseer Ahmed4d35af82012-07-11 23:43:42 -070045common_deps :=
46kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070047
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070048# Executed only on QCOM BSPs
Sushil Chauhanc3c2f852016-04-27 19:00:54 -070049# ifeq ($(TARGET_USES_QCOM_BSP),true)
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070050# Enable QCOM Display features
Sushil Chauhanc3c2f852016-04-27 19:00:54 -070051# common_flags += -DQTI_BSP
52# endif
Naseer Ahmed34bad082016-04-27 22:35:00 -040053
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040054ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040055# This check is to pick the kernel headers from the right location.
56# If the macro above is defined, we make the assumption that we have the kernel
57# available in the build tree.
58# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
59# failing which, they are picked from bionic.
Naseer Ahmed4d35af82012-07-11 23:43:42 -070060 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
61 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
62endif