blob: fb955a2c9637957370d603d8a56b45a0a8b42a39 [file] [log] [blame]
Naseer Ahmed4d35af82012-07-11 23:43:42 -07001#Common headers
Naseer Ahmedd68b47d2016-04-05 17:40:02 -04002display_top := $(call my-dir)
3
4common_includes := $(display_top)/libqdutils
5common_includes += $(display_top)/libqservice
6common_includes += $(display_top)/libcopybit
7common_includes += $(display_top)/sdm/include
Naseer Ahmed4d35af82012-07-11 23:43:42 -07008
Naseer Ahmedc55d60a2013-07-11 17:42:26 -04009common_header_export_path := qcom/display
10
Naseer Ahmed4d35af82012-07-11 23:43:42 -070011#Common libraries external to display HAL
12common_libs := liblog libutils libcutils libhardware
13
14#Common C flags
Naseer Ahmed01d3fd32012-07-14 21:08:13 -070015common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
Naseer Ahmed9eb5e092014-09-25 13:24:44 -040016common_flags += -Wconversion -Wall -Werror
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040017common_flags += -isystem $(display_top)/libgralloc
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
Sushil Chauhanc6bd6d92012-12-12 12:33:01 -080030endif
31
Shalaj Jain3c490412015-04-22 16:52:03 -070032ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
33 common_flags += -DMASTER_SIDE_CP
34endif
35
Naseer Ahmed4d35af82012-07-11 23:43:42 -070036common_deps :=
37kernel_includes :=
Saurabh Shah56f610d2012-08-07 15:27:06 -070038
Naseer Ahmedd68b47d2016-04-05 17:40:02 -040039ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
Naseer Ahmede7ff13f2013-04-15 20:42:08 -040040# This check is to pick the kernel headers from the right location.
41# If the macro above is defined, we make the assumption that we have the kernel
42# available in the build tree.
43# If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
44# failing which, they are picked from bionic.
Naseer Ahmed4d35af82012-07-11 23:43:42 -070045 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
46 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
47endif