1 #Common headers 2 common_includes := hardware/qcom/display/msm8974/libgralloc 3 common_includes += hardware/qcom/display/msm8974/liboverlay 4 common_includes += hardware/qcom/display/msm8974/libcopybit 5 common_includes += hardware/qcom/display/msm8974/libqdutils 6 common_includes += hardware/qcom/display/msm8974/libhwcomposer 7 common_includes += hardware/qcom/display/msm8974/libexternal 8 common_includes += hardware/qcom/display/msm8974/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 += -Werror 18 19 ifeq ($(ARCH_ARM_HAVE_NEON),true) 20 common_flags += -D__ARM_HAVE_NEON 21 endif 22 23 ifneq ($(filter msm8974 msm8x74 msm8226 msm8x26 msm8610 apq8084,$(TARGET_BOARD_PLATFORM)),) 24 common_flags += -DVENUS_COLOR_FORMAT 25 common_flags += -DMDSS_TARGET 26 endif 27 28 ifeq ($(TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS), true) 29 common_flags += -DFORCE_HWC_FOR_VIRTUAL_DISPLAYS 30 endif 31 32 common_deps := 33 kernel_includes := 34 35 # Executed only on QCOM BSPs 36 ifeq ($(TARGET_USES_QCOM_BSP),true) 37 # On jb_mr2- dont enable QCOM Display features 38 ifneq ($(call is-platform-sdk-version-at-least,18),true) 39 # This flag is used to compile out any features that depend on framework changes 40 common_flags += -DQCOM_BSP 41 common_flags += -DANDROID_JELLYBEAN_MR1=1 42 endif 43 endif 44 ifeq ($(call is-vendor-board-platform,QCOM),true) 45 # This check is to pick the kernel headers from the right location. 46 # If the macro above is defined, we make the assumption that we have the kernel 47 # available in the build tree. 48 # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX 49 # failing which, they are picked from bionic. 50 common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 51 kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 52 endif 53