blob: 0142a6821f01ae3e947b093e3e81b199309ad060 [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
Naseer Ahmed07bded62014-04-11 19:46:04 -04003common_includes += $(LOCAL_PATH)/../libcopybit
4common_includes += $(LOCAL_PATH)/../libqdutils
Naseer Ahmed07bded62014-04-11 19:46:04 -04005common_includes += $(LOCAL_PATH)/../libqservice
Naseer Ahmed4d35af82012-07-11 23:43:42 -07006
Naseer Ahmedc55d60a2013-07-11 17:42:26 -04007common_header_export_path := qcom/display
8
Naseer Ahmed4d35af82012-07-11 23:43:42 -07009#Common libraries external to display HAL
10common_libs := liblog libutils libcutils libhardware
11
12#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070013common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmed9eb5e092014-09-25 13:24:44 -040014common_flags += -Wconversion -Wall -Werror
Naseer Ahmedb16edac2012-07-15 23:56:21 -070015
Praveena Pachipulusu734118a2014-12-04 14:53:12 +053016ifeq ($(TARGET_USES_POST_PROCESSING),true)
17 common_flags += -DUSES_POST_PROCESSING
18 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
19endif
20
Naseer Ahmed4d35af82012-07-11 23:43:42 -070021ifeq ($(ARCH_ARM_HAVE_NEON),true)
22 common_flags += -D__ARM_HAVE_NEON
23endif
24
Shalaj Jain103f6662014-09-18 11:47:52 -070025ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
26 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080027endif
28
Shalaj Jain3c490412015-04-22 16:52:03 -070029ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
30 common_flags += -DMASTER_SIDE_CP
31endif
32
Naseer Ahmed4d35af82012-07-11 23:43:42 -070033common_deps :=
34kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070035
Naseer Ahmed74214722013-02-09 08:11:36 -050036# Executed only on QCOM BSPs
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040037ifeq ($(TARGET_USES_QCOM_BSP),true)
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070038# Enable QCOM Display features
Naseer Ahmed74214722013-02-09 08:11:36 -050039 common_flags += -DQCOM_BSP
Ramkumar Radhakrishnanad938e62013-07-11 19:24:09 -070040endif
Arun Kumar K.R8e6b61c2013-06-25 12:18:01 -070041ifneq ($(call is-platform-sdk-version-at-least,18),true)
Arun Kumar K.R72921552013-06-12 19:18:37 -070042 common_flags += -DANDROID_JELLYBEAN_MR1=1
43endif
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040044ifeq ($(call is-vendor-board-platform,QCOM),true)
45# This check is to pick the kernel headers from the right location.
46# If the macro above is defined, we make the assumption that we have the kernel
47# available in the build tree.
48# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
49# failing which, they are picked from bionic.
Naseer Ahmed4d35af82012-07-11 23:43:42 -070050 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
51 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
52endif