2012-07-12 06:43:42 +00:00
|
|
|
#Common headers
|
2014-04-11 23:46:04 +00:00
|
|
|
common_includes := $(LOCAL_PATH)/../libgralloc
|
|
|
|
common_includes += $(LOCAL_PATH)/../liboverlay
|
|
|
|
common_includes += $(LOCAL_PATH)/../libcopybit
|
|
|
|
common_includes += $(LOCAL_PATH)/../libqdutils
|
|
|
|
common_includes += $(LOCAL_PATH)/../libhwcomposer
|
|
|
|
common_includes += $(LOCAL_PATH)/../libexternal
|
|
|
|
common_includes += $(LOCAL_PATH)/../libqservice
|
|
|
|
common_includes += $(LOCAL_PATH)/../libvirtual
|
2012-07-12 06:43:42 +00:00
|
|
|
|
|
|
|
ifeq ($(TARGET_USES_POST_PROCESSING),true)
|
|
|
|
common_flags += -DUSES_POST_PROCESSING
|
2013-07-29 21:41:40 +00:00
|
|
|
common_includes += $(TARGET_OUT_HEADERS)/pp/inc
|
2012-07-12 06:43:42 +00:00
|
|
|
endif
|
|
|
|
|
2013-07-11 21:42:26 +00:00
|
|
|
common_header_export_path := qcom/display
|
|
|
|
|
2012-07-12 06:43:42 +00:00
|
|
|
#Common libraries external to display HAL
|
|
|
|
common_libs := liblog libutils libcutils libhardware
|
|
|
|
|
|
|
|
#Common C flags
|
2012-07-15 04:08:13 +00:00
|
|
|
common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
|
2014-02-18 20:40:58 +00:00
|
|
|
#TODO: Add -Werror back once all the current warnings are fixed
|
|
|
|
common_flags += -Wconversion -Wall
|
2012-07-16 06:56:21 +00:00
|
|
|
|
2012-07-12 06:43:42 +00:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_NEON),true)
|
|
|
|
common_flags += -D__ARM_HAVE_NEON
|
|
|
|
endif
|
|
|
|
|
2015-05-06 22:58:16 +00:00
|
|
|
ifneq ($(filter msm8974 msm8226 msm8610 msm8084 msm8916, \
|
|
|
|
$(TARGET_BOARD_PLATFORM)),)
|
2012-12-12 20:33:01 +00:00
|
|
|
common_flags += -DVENUS_COLOR_FORMAT
|
2013-03-06 23:36:49 +00:00
|
|
|
common_flags += -DMDSS_TARGET
|
2012-12-12 20:33:01 +00:00
|
|
|
endif
|
|
|
|
|
2016-12-22 23:40:12 +00:00
|
|
|
ifeq ($(DISPLAY_DEBUG_SWAPINTERVAL),true)
|
|
|
|
common_flags += -DDEBUG_SWAPINTERVAL
|
|
|
|
endif
|
|
|
|
|
2017-01-31 01:54:29 +00:00
|
|
|
common_flags += -D__STDC_FORMAT_MACROS
|
|
|
|
|
2012-07-12 06:43:42 +00:00
|
|
|
common_deps :=
|
|
|
|
kernel_includes :=
|
2012-08-07 22:27:06 +00:00
|
|
|
|
2013-02-09 13:11:36 +00:00
|
|
|
# Executed only on QCOM BSPs
|
2013-04-16 00:42:08 +00:00
|
|
|
ifeq ($(TARGET_USES_QCOM_BSP),true)
|
2013-06-25 19:18:01 +00:00
|
|
|
# Enable QCOM Display features
|
2013-02-09 13:11:36 +00:00
|
|
|
common_flags += -DQCOM_BSP
|
2013-07-12 02:24:09 +00:00
|
|
|
endif
|
2013-06-25 19:18:01 +00:00
|
|
|
ifneq ($(call is-platform-sdk-version-at-least,18),true)
|
2013-06-13 02:18:37 +00:00
|
|
|
common_flags += -DANDROID_JELLYBEAN_MR1=1
|
|
|
|
endif
|