Home | History | Annotate | Download | only in msm8994
      1 #Common headers
      2 common_includes := $(LOCAL_PATH)/../libgralloc
      3 common_includes += $(LOCAL_PATH)/../liboverlay
      4 common_includes += $(LOCAL_PATH)/../libcopybit
      5 common_includes += $(LOCAL_PATH)/../libqdutils
      6 common_includes += $(LOCAL_PATH)/../libhwcomposer
      7 common_includes += $(LOCAL_PATH)/../libhdmi
      8 common_includes += $(LOCAL_PATH)/../libqservice
      9 
     10 common_header_export_path := qcom/display
     11 
     12 #Common libraries external to display HAL
     13 common_libs := liblog libutils libcutils libhardware
     14 
     15 #Common C flags
     16 common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
     17 common_flags += -Wconversion -Wall -Werror
     18 
     19 ifeq ($(TARGET_USES_POST_PROCESSING),true)
     20     common_flags     += -DUSES_POST_PROCESSING
     21     common_includes  += $(TARGET_OUT_HEADERS)/pp/inc
     22 endif
     23 
     24 ifeq ($(ARCH_ARM_HAVE_NEON),true)
     25     common_flags += -D__ARM_HAVE_NEON
     26 endif
     27 
     28 common_flags += -DVENUS_COLOR_FORMAT
     29 common_flags += -DMDSS_TARGET
     30 
     31 ifeq ($(DISPLAY_DEBUG_SWAPINTERVAL),true)
     32     common_flags += -DDEBUG_SWAPINTERVAL
     33 endif
     34 
     35 common_flags += -D__STDC_FORMAT_MACROS
     36 
     37 common_deps  :=
     38 kernel_includes :=
     39 
     40 # Executed only on QCOM BSPs
     41 ifeq ($(TARGET_USES_QCOM_BSP),true)
     42 # Enable QCOM Display features
     43     common_flags += -DQCOM_BSP
     44 endif
     45 ifneq ($(call is-platform-sdk-version-at-least,18),true)
     46     common_flags += -DANDROID_JELLYBEAN_MR1=1
     47 endif
     48 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
     49 # This check is to pick the kernel headers from the right location.
     50 # If the macro above is defined, we make the assumption that we have the kernel
     51 # available in the build tree.
     52 # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
     53 # failing which, they are picked from bionic.
     54     common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
     55     kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     56 endif
     57