blob: da38ded2b59139e6c991d91dd18ee0545d5e9cd9 [file] [log] [blame]
Naseer Ahmed4d35af82012-07-11 23:43:42 -07001#Common headers
2common_includes := hardware/qcom/display/libgralloc
Naseer Ahmed4d35af82012-07-11 23:43:42 -07003common_includes += hardware/qcom/display/liboverlay
Naseer Ahmed31da0b12012-07-31 18:55:33 -07004common_includes += hardware/qcom/display/libcopybit
Naseer Ahmed4d35af82012-07-11 23:43:42 -07005common_includes += hardware/qcom/display/libqdutils
Saurabh Shah56f610d2012-08-07 15:27:06 -07006common_includes += hardware/qcom/display/libhwcomposer
7common_includes += hardware/qcom/display/libexternal
8common_includes += hardware/qcom/display/libqservice
Jeykumar Sankaran27dee262013-08-01 17:09:54 -07009common_includes += hardware/qcom/display/libvirtual
Naseer Ahmed4d35af82012-07-11 23:43:42 -070010
11ifeq ($(TARGET_USES_POST_PROCESSING),true)
12 common_flags += -DUSES_POST_PROCESSING
Naseer Ahmed58780b92013-07-29 17:41:40 -040013 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
Naseer Ahmed4d35af82012-07-11 23:43:42 -070014endif
15
Naseer Ahmedc55d60a2013-07-11 17:42:26 -040016common_header_export_path := qcom/display
17
Naseer Ahmed4d35af82012-07-11 23:43:42 -070018#Common libraries external to display HAL
19common_libs := liblog libutils libcutils libhardware
20
Saurabh Shah5daeee52013-01-23 16:52:26 +080021ifeq ($(TARGET_USES_POST_PROCESSING),true)
22 common_libs += libmm-abl
23endif
24
Naseer Ahmed4d35af82012-07-11 23:43:42 -070025#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070026common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Arun Kumar K.R5878ddc2014-02-18 12:40:58 -080027#TODO: Add -Werror back once all the current warnings are fixed
28common_flags += -Wconversion -Wall
Naseer Ahmedb16edac2012-07-15 23:56:21 -070029
Naseer Ahmed4d35af82012-07-11 23:43:42 -070030ifeq ($(ARCH_ARM_HAVE_NEON),true)
31 common_flags += -D__ARM_HAVE_NEON
32endif
33
Saurabh Shahc9e21572013-07-16 17:41:48 -070034ifeq ($(call is-board-platform-in-list, msm8974 msm8226 msm8610 apq8084 \
Sivalatha Chakrala10cd49e2013-12-12 22:24:05 +053035 mpq8092 msm_bronze msm8916), true)
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080036 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhan07a2c762013-03-06 15:36:49 -080037 common_flags += -DMDSS_TARGET
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080038endif
39
Zohaib Alam1bb65612013-09-28 03:38:20 -040040ifeq ($(call is-board-platform-in-list, mpq8092), true)
Naseer Ahmed58780b92013-07-29 17:41:40 -040041 common_flags += -DVPU_TARGET
42endif
43
44
Naseer Ahmed4d35af82012-07-11 23:43:42 -070045common_deps :=
46kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070047
Naseer Ahmed74214722013-02-09 08:11:36 -050048# Executed only on QCOM BSPs
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040049ifeq ($(TARGET_USES_QCOM_BSP),true)
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070050# Enable QCOM Display features
Naseer Ahmed74214722013-02-09 08:11:36 -050051 common_flags += -DQCOM_BSP
Ramkumar Radhakrishnanad938e62013-07-11 19:24:09 -070052endif
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070053ifneq ($(call is-platform-sdk-version-at-least,18),true)
Arun Kumar K.R72921552013-06-12 19:18:37 -070054 common_flags += -DANDROID_JELLYBEAN_MR1=1
55endif
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040056ifeq ($(call is-vendor-board-platform,QCOM),true)
57# This check is to pick the kernel headers from the right location.
58# If the macro above is defined, we make the assumption that we have the kernel
59# available in the build tree.
60# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
61# failing which, they are picked from bionic.
Naseer Ahmed4d35af82012-07-11 23:43:42 -070062 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
63 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
64endif