blob: 5ae6df98c1727b4ecbb979d680e2d8e17e66134e [file] [log] [blame]
Naseer Ahmed4d35af82012-07-11 23:43:42 -07001#Common headers
2common_includes := hardware/qcom/display/libgralloc
3common_includes += hardware/qcom/display/libgenlock
4common_includes += hardware/qcom/display/liboverlay
Naseer Ahmed31da0b12012-07-31 18:55:33 -07005common_includes += hardware/qcom/display/libcopybit
Naseer Ahmed4d35af82012-07-11 23:43:42 -07006common_includes += hardware/qcom/display/libqdutils
Saurabh Shah56f610d2012-08-07 15:27:06 -07007common_includes += hardware/qcom/display/libhwcomposer
8common_includes += hardware/qcom/display/libexternal
9common_includes += hardware/qcom/display/libqservice
Naseer Ahmed4d35af82012-07-11 23:43:42 -070010
11ifeq ($(TARGET_USES_POST_PROCESSING),true)
12 common_flags += -DUSES_POST_PROCESSING
13 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
14endif
15
16
17#Common libraries external to display HAL
18common_libs := liblog libutils libcutils libhardware
19
20#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070021common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmedb16edac2012-07-15 23:56:21 -070022common_flags += -Werror
23
Naseer Ahmed4d35af82012-07-11 23:43:42 -070024ifeq ($(ARCH_ARM_HAVE_NEON),true)
25 common_flags += -D__ARM_HAVE_NEON
26endif
27
Sushil Chauhan9a7f27b2013-03-07 14:34:03 -080028ifeq ($(call is-board-platform-in-list, msm8974 msm8226), true)
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080029 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhan07a2c762013-03-06 15:36:49 -080030 common_flags += -DMDSS_TARGET
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080031endif
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 Ahmed4d35af82012-07-11 23:43:42 -070037ifeq ($(call is-vendor-board-platform,QCOM),true)
Naseer Ahmed74214722013-02-09 08:11:36 -050038 common_flags += -DQCOM_BSP
Naseer Ahmed4d35af82012-07-11 23:43:42 -070039 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
40 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
41endif