blob: 298e0bf6b584b582069887ea194aceb793f99fea [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
Pullakavi Srinivasc6442662016-06-22 02:20:07 +053011ifneq ($(TARGET_IS_HEADLESS), true)
12 common_includes += $(display_top)/libcopybit
13endif
14
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040015common_includes += $(display_top)/sdm/include
Naseer Ahmed4d35af82012-07-11 23:43:42 -070016
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
Pullakavi Srinivasc6442662016-06-22 02:20:07 +053022ifeq ($(TARGET_IS_HEADLESS), true)
23 LOCAL_CLANG := false
24else
25 LOCAL_CLANG := true
26endif
27
Naseer Ahmed4d35af82012-07-11 23:43:42 -070028#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070029common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Pullakavi Srinivasc6442662016-06-22 02:20:07 +053030common_flags += -Wconversion -Wall -Werror -std=c++11
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053031ifneq ($(TARGET_USES_GRALLOC1), true)
32 common_flags += -isystem $(display_top)/libgralloc
33else
34 common_flags += -isystem $(display_top)/libgralloc1
35endif
Naseer Ahmedb16edac2012-07-15 23:56:21 -070036
Praveena Pachipulusu734118a2014-12-04 14:53:12 +053037ifeq ($(TARGET_USES_POST_PROCESSING),true)
38 common_flags += -DUSES_POST_PROCESSING
39 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
40endif
41
Naseer Ahmed4d35af82012-07-11 23:43:42 -070042ifeq ($(ARCH_ARM_HAVE_NEON),true)
43 common_flags += -D__ARM_HAVE_NEON
44endif
45
Shalaj Jain103f6662014-09-18 11:47:52 -070046ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
47 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080048endif
49
Shalaj Jain3c490412015-04-22 16:52:03 -070050ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
51 common_flags += -DMASTER_SIDE_CP
52endif
53
Naseer Ahmed4d35af82012-07-11 23:43:42 -070054common_deps :=
55kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070056
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070057# Executed only on QCOM BSPs
Namit Solankic4c6e2d2016-07-11 16:56:25 +053058ifeq ($(TARGET_USES_QCOM_BSP),true)
Manoj Kumar AVMa864ebc2016-03-21 19:44:28 -070059# Enable QCOM Display features
Namit Solankic4c6e2d2016-07-11 16:56:25 +053060 common_flags += -DQTI_BSP
61endif
Naseer Ahmed34bad082016-04-27 22:35:00 -040062
Pullakavi Srinivasc6442662016-06-22 02:20:07 +053063ifeq ($(TARGET_IS_HEADLESS),true)
64 common_flags += -DTARGET_HEADLESS
65endif
66
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040067ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040068# This check is to pick the kernel headers from the right location.
69# If the macro above is defined, we make the assumption that we have the kernel
70# available in the build tree.
71# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
72# failing which, they are picked from bionic.
Naseer Ahmed4d35af82012-07-11 23:43:42 -070073 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
74 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
75endif