blob: cdac0fa91774be85fcaa2cda8050e74c750455f2 [file] [log] [blame]
Naseer Ahmed4d35af82012-07-11 23:43:42 -07001#Common headers
Naseer Ahmed07bded62014-04-11 19:46:04 -04002common_includes := $(LOCAL_PATH)/../libgralloc
3common_includes += $(LOCAL_PATH)/../liboverlay
4common_includes += $(LOCAL_PATH)/../libcopybit
5common_includes += $(LOCAL_PATH)/../libqdutils
6common_includes += $(LOCAL_PATH)/../libhwcomposer
Tatenda Chipeperekwaaf2c0042014-09-17 12:55:01 -07007common_includes += $(LOCAL_PATH)/../libhdmi
Naseer Ahmed07bded62014-04-11 19:46:04 -04008common_includes += $(LOCAL_PATH)/../libqservice
Naseer Ahmed4d35af82012-07-11 23:43:42 -07009
Naseer Ahmedc55d60a2013-07-11 17:42:26 -040010common_header_export_path := qcom/display
11
Naseer Ahmed4d35af82012-07-11 23:43:42 -070012#Common libraries external to display HAL
13common_libs := liblog libutils libcutils libhardware
14
15#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070016common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmed9eb5e092014-09-25 13:24:44 -040017common_flags += -Wconversion -Wall -Werror
Naseer Ahmedb16edac2012-07-15 23:56:21 -070018
Praveena Pachipulusu734118a2014-12-04 14:53:12 +053019ifeq ($(TARGET_USES_POST_PROCESSING),true)
20 common_flags += -DUSES_POST_PROCESSING
21 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
22endif
23
Naseer Ahmed4d35af82012-07-11 23:43:42 -070024ifeq ($(ARCH_ARM_HAVE_NEON),true)
25 common_flags += -D__ARM_HAVE_NEON
26endif
27
Shalaj Jain103f6662014-09-18 11:47:52 -070028ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
29 common_flags += -DVENUS_COLOR_FORMAT
30endif
31
Saurabh Shahc9e21572013-07-16 17:41:48 -070032ifeq ($(call is-board-platform-in-list, msm8974 msm8226 msm8610 apq8084 \
Jeykumar Sankaran9dc0cba2014-06-05 16:52:44 -070033 mpq8092 msm_bronze msm8916 msm8994), true)
Sushil Chauhan07a2c762013-03-06 15:36:49 -080034 common_flags += -DMDSS_TARGET
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080035endif
Dileep Kumar Reddi92eb5db2014-10-20 18:28:17 +053036ifeq ($(call is-board-platform-in-list, msm8909), true)
37 common_flags += -DVENUS_COLOR_FORMAT
38endif
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080039
Naseer Ahmed4d35af82012-07-11 23:43:42 -070040common_deps :=
41kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070042
Naseer Ahmed74214722013-02-09 08:11:36 -050043# Executed only on QCOM BSPs
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040044ifeq ($(TARGET_USES_QCOM_BSP),true)
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070045# Enable QCOM Display features
Naseer Ahmed74214722013-02-09 08:11:36 -050046 common_flags += -DQCOM_BSP
Ramkumar Radhakrishnanad938e62013-07-11 19:24:09 -070047endif
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070048ifneq ($(call is-platform-sdk-version-at-least,18),true)
Arun Kumar K.R72921552013-06-12 19:18:37 -070049 common_flags += -DANDROID_JELLYBEAN_MR1=1
50endif
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040051ifeq ($(call is-vendor-board-platform,QCOM),true)
52# 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