Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 1 | #Common headers |
Naseer Ahmed | d68b47d | 2016-04-05 17:40:02 -0400 | [diff] [blame] | 2 | display_top := $(call my-dir) |
| 3 | |
| 4 | common_includes := $(display_top)/libqdutils |
| 5 | common_includes += $(display_top)/libqservice |
| 6 | common_includes += $(display_top)/libcopybit |
| 7 | common_includes += $(display_top)/sdm/include |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 8 | |
Naseer Ahmed | c55d60a | 2013-07-11 17:42:26 -0400 | [diff] [blame] | 9 | common_header_export_path := qcom/display |
| 10 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 11 | #Common libraries external to display HAL |
| 12 | common_libs := liblog libutils libcutils libhardware |
| 13 | |
| 14 | #Common C flags |
Naseer Ahmed | 01d3fd3 | 2012-07-14 21:08:13 -0700 | [diff] [blame] | 15 | common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers |
Naseer Ahmed | 9eb5e09 | 2014-09-25 13:24:44 -0400 | [diff] [blame] | 16 | common_flags += -Wconversion -Wall -Werror |
Naseer Ahmed | d68b47d | 2016-04-05 17:40:02 -0400 | [diff] [blame] | 17 | common_flags += -isystem $(display_top)/libgralloc |
Naseer Ahmed | b16edac | 2012-07-15 23:56:21 -0700 | [diff] [blame] | 18 | |
Praveena Pachipulusu | 734118a | 2014-12-04 14:53:12 +0530 | [diff] [blame] | 19 | ifeq ($(TARGET_USES_POST_PROCESSING),true) |
| 20 | common_flags += -DUSES_POST_PROCESSING |
| 21 | common_includes += $(TARGET_OUT_HEADERS)/pp/inc |
| 22 | endif |
| 23 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 24 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 25 | common_flags += -D__ARM_HAVE_NEON |
| 26 | endif |
| 27 | |
Shalaj Jain | 103f666 | 2014-09-18 11:47:52 -0700 | [diff] [blame] | 28 | ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true) |
| 29 | common_flags += -DVENUS_COLOR_FORMAT |
Sushil Chauhan | c6bd6d9 | 2012-12-12 12:33:01 -0800 | [diff] [blame] | 30 | endif |
| 31 | |
Shalaj Jain | 3c49041 | 2015-04-22 16:52:03 -0700 | [diff] [blame] | 32 | ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true) |
| 33 | common_flags += -DMASTER_SIDE_CP |
| 34 | endif |
| 35 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 36 | common_deps := |
| 37 | kernel_includes := |
Saurabh Shah | 56f610d | 2012-08-07 15:27:06 -0700 | [diff] [blame] | 38 | |
Manoj Kumar AVM | a864ebc | 2016-03-21 19:44:28 -0700 | [diff] [blame] | 39 | # Executed only on QCOM BSPs |
Naseer Ahmed | 34bad08 | 2016-04-27 22:35:00 -0400 | [diff] [blame^] | 40 | #ifeq ($(TARGET_USES_QCOM_BSP),true) |
Manoj Kumar AVM | a864ebc | 2016-03-21 19:44:28 -0700 | [diff] [blame] | 41 | # Enable QCOM Display features |
Naseer Ahmed | 34bad08 | 2016-04-27 22:35:00 -0400 | [diff] [blame^] | 42 | # common_flags += -DQTI_BSP |
| 43 | #endif |
| 44 | |
Naseer Ahmed | d68b47d | 2016-04-05 17:40:02 -0400 | [diff] [blame] | 45 | ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) |
Naseer Ahmed | e7ff13f | 2013-04-15 20:42:08 -0400 | [diff] [blame] | 46 | # This check is to pick the kernel headers from the right location. |
| 47 | # If the macro above is defined, we make the assumption that we have the kernel |
| 48 | # available in the build tree. |
| 49 | # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX |
| 50 | # failing which, they are picked from bionic. |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 51 | common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 52 | kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 53 | endif |