Dileep Marchya | 96db258 | 2014-10-27 20:58:37 -0700 | [diff] [blame] | 1 | #Common headers |
| 2 | common_includes := hardware/qcom/display/displayengine/include/ |
| 3 | common_includes += hardware/qcom/display/libgralloc/ |
| 4 | common_includes += hardware/qcom/display/libcopybit/ |
| 5 | |
| 6 | common_header_export_path := qcom/display |
| 7 | |
| 8 | #Common libraries external to display HAL |
| 9 | common_libs := liblog libutils libcutils libhardware |
| 10 | |
| 11 | #Common C flags |
| 12 | common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers |
| 13 | common_flags += -Wconversion -Wall -Werror |
| 14 | common_flags += -Wno-unused-parameter -Wno-unused-variable |
| 15 | |
| 16 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 17 | common_flags += -D__ARM_HAVE_NEON |
| 18 | endif |
| 19 | |
| 20 | ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true) |
| 21 | common_flags += -DVENUS_COLOR_FORMAT |
| 22 | endif |
| 23 | |
| 24 | ifeq ($(call is-board-platform-in-list, msm8994), true) |
| 25 | common_flags += -DMDSS_TARGET |
| 26 | endif |
| 27 | |
| 28 | common_deps := |
| 29 | kernel_includes := |
| 30 | |
| 31 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 32 | # This check is to pick the kernel headers from the right location. |
| 33 | # If the macro above is defined, we make the assumption that we have the kernel |
| 34 | # available in the build tree. |
| 35 | # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX |
| 36 | # failing which, they are picked from bionic. |
| 37 | common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 38 | kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 39 | endif |