Home | History | Annotate | Download | only in msm8996
      1 #Common headers
      2 display_top := $(call my-dir)
      3 
      4 use_hwc2 := false
      5 ifeq ($(TARGET_USES_HWC2), true)
      6     use_hwc2 := true
      7 endif
      8 
      9 common_includes := $(display_top)/libqdutils
     10 common_includes += $(display_top)/libqservice
     11 common_includes += $(display_top)/libcopybit
     12 common_includes += $(display_top)/sdm/include
     13 
     14 common_header_export_path := qcom/display
     15 
     16 #Common libraries external to display HAL
     17 common_libs := liblog libutils libcutils libhardware
     18 
     19 #Common C flags
     20 common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
     21 common_flags += -Wconversion -Wall -Werror
     22 ifeq ($(TARGET_IS_HEADLESS), true)
     23     LOCAL_CLANG := false
     24 else
     25     LOCAL_CLANG := true
     26 endif
     27 
     28 ifneq ($(TARGET_USES_GRALLOC1), true)
     29     common_flags += -isystem $(display_top)/libgralloc
     30 else
     31     common_flags += -isystem $(display_top)/libgralloc1
     32     common_flags += -DUSE_GRALLOC1
     33 endif
     34 
     35 ifeq ($(TARGET_USES_POST_PROCESSING),true)
     36     common_flags     += -DUSES_POST_PROCESSING
     37     common_includes  += $(TARGET_OUT_HEADERS)/pp/inc
     38 endif
     39 
     40 ifeq ($(ARCH_ARM_HAVE_NEON),true)
     41     common_flags += -D__ARM_HAVE_NEON
     42 endif
     43 
     44 ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true)
     45     common_flags += -DVENUS_COLOR_FORMAT
     46 endif
     47 
     48 ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
     49     common_flags += -DMASTER_SIDE_CP
     50 endif
     51 
     52 common_flags += -D__STDC_FORMAT_MACROS
     53 
     54 common_deps  :=
     55 kernel_includes :=
     56 
     57 # Executed only on QCOM BSPs
     58 # ifeq ($(TARGET_USES_QCOM_BSP),true)
     59 # Enable QCOM Display features
     60 #    common_flags += -DQTI_BSP
     61 # endif
     62 
     63 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
     64 # This check is to pick the kernel headers from the right location.
     65 # If the macro above is defined, we make the assumption that we have the kernel
     66 # available in the build tree.
     67 # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
     68 # failing which, they are picked from bionic.
     69     common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
     70     kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     71 endif
     72