blob: 360032bea20aca3a7f440a5ceda5dc4d7e9049d3 [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
Naseer Ahmed4d35af82012-07-11 23:43:42 -07009
10ifeq ($(TARGET_USES_POST_PROCESSING),true)
11 common_flags += -DUSES_POST_PROCESSING
12 common_includes += $(TARGET_OUT_HEADERS)/pp/inc
13endif
14
15
16#Common libraries external to display HAL
17common_libs := liblog libutils libcutils libhardware
18
19#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070020common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmedb16edac2012-07-15 23:56:21 -070021common_flags += -Werror
22
Naseer Ahmed4d35af82012-07-11 23:43:42 -070023ifeq ($(ARCH_ARM_HAVE_NEON),true)
24 common_flags += -D__ARM_HAVE_NEON
25endif
26
Sushil Chauhan9a7f27b2013-03-07 14:34:03 -080027ifeq ($(call is-board-platform-in-list, msm8974 msm8226), true)
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080028 common_flags += -DVENUS_COLOR_FORMAT
Sushil Chauhan07a2c762013-03-06 15:36:49 -080029 common_flags += -DMDSS_TARGET
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080030endif
31
Naseer Ahmed4d35af82012-07-11 23:43:42 -070032common_deps :=
33kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070034
Naseer Ahmed74214722013-02-09 08:11:36 -050035# Executed only on QCOM BSPs
Naseer Ahmed4d35af82012-07-11 23:43:42 -070036ifeq ($(call is-vendor-board-platform,QCOM),true)
Naseer Ahmed74214722013-02-09 08:11:36 -050037 common_flags += -DQCOM_BSP
Naseer Ahmed4d35af82012-07-11 23:43:42 -070038 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
39 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
40endif