Home | History | Annotate | Download | only in sdm845
      1 #Common headers
      2 display_top := $(call my-dir)
      3 
      4 #Common C flags
      5 common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers
      6 common_flags += -Wconversion -Wall -Werror -std=c++11
      7 ifeq ($(TARGET_IS_HEADLESS), true)
      8     common_flags += -DTARGET_HEADLESS
      9     LOCAL_CLANG := false
     10 endif
     11 
     12 ifeq ($(TARGET_USES_COLOR_METADATA), true)
     13     common_flags += -DUSE_COLOR_METADATA
     14 endif
     15 
     16 ifeq ($(TARGET_USES_QCOM_BSP),true)
     17     common_flags += -DQTI_BSP
     18 endif
     19 
     20 ifeq ($(ARCH_ARM_HAVE_NEON),true)
     21     common_flags += -D__ARM_HAVE_NEON
     22 endif
     23 
     24 ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
     25     common_flags += -DMASTER_SIDE_CP
     26 endif
     27 
     28 use_hwc2 := false
     29 ifeq ($(TARGET_USES_HWC2), true)
     30     use_hwc2 := true
     31     common_flags += -DVIDEO_MODE_DEFER_RETIRE_FENCE
     32 endif
     33 
     34 ifeq ($(TARGET_USES_GRALLOC1), true)
     35     common_flags += -DUSE_GRALLOC1
     36 endif
     37 
     38 common_includes := system/core/base/include
     39 CHECK_VERSION_LE = $(shell if [ $(1) -le $(2) ] ; then echo true ; else echo false ; fi)
     40 PLATFORM_SDK_NOUGAT = 25
     41 ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
     42 ifeq ($(call CHECK_VERSION_LE, $(PLATFORM_SDK_VERSION), $(PLATFORM_SDK_NOUGAT)), true)
     43 version_flag := -D__NOUGAT__
     44 
     45 # These include paths are deprecated post N
     46 common_includes += $(display_top)/libqdutils
     47 common_includes += $(display_top)/libqservice
     48 common_includes += $(display_top)/gpu_tonemapper
     49 ifneq ($(TARGET_IS_HEADLESS), true)
     50     common_includes += $(display_top)/libcopybit
     51 endif
     52 
     53 common_includes += $(display_top)/include
     54 common_includes += $(display_top)/sdm/include
     55 common_flags += -isystem $(TARGET_OUT_HEADERS)/qcom/display
     56 endif
     57 endif
     58 
     59 common_header_export_path := qcom/display
     60 
     61 #Common libraries external to display HAL
     62 common_libs := liblog libutils libcutils libhardware
     63 common_deps  :=
     64 kernel_includes :=
     65 
     66 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
     67 # This check is to pick the kernel headers from the right location.
     68 # If the macro above is defined, we make the assumption that we have the kernel
     69 # available in the build tree.
     70 # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX
     71 # failing which, they are picked from bionic.
     72     common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
     73     kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     74 endif
     75