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 common_deps  :=
     32 kernel_includes :=
     33 
     34 # Executed only on QCOM BSPs
     35 ifeq ($(TARGET_USES_QCOM_BSP),true)
     36 # Enable QCOM Display features
     37     common_flags += -DQCOM_BSP
     38 endif
     39 ifneq ($(call is-platform-sdk-version-at-least,18),true)
     40     common_flags += -DANDROID_JELLYBEAN_MR1=1
     41 endif
     42 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
     43 # This check is to pick the kernel headers from the right location.
     44 # If the macro above is defined, we make the assumption that we have the kernel
     45 # available in the build tree.
     46 # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
     47 # failing which, they are picked from bionic.
     48     common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
     49     kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     50 endif
     51