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 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 4 | use_hwc2 := false |
Naseer Ahmed | ad8ae63 | 2016-06-09 16:48:22 -0400 | [diff] [blame] | 5 | ifeq ($(TARGET_USES_HWC2), true) |
| 6 | use_hwc2 := true |
| 7 | endif |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 8 | |
Naseer Ahmed | d68b47d | 2016-04-05 17:40:02 -0400 | [diff] [blame] | 9 | common_includes := $(display_top)/libqdutils |
| 10 | common_includes += $(display_top)/libqservice |
Pullakavi Srinivas | c644266 | 2016-06-22 02:20:07 +0530 | [diff] [blame] | 11 | ifneq ($(TARGET_IS_HEADLESS), true) |
| 12 | common_includes += $(display_top)/libcopybit |
| 13 | endif |
| 14 | |
Naseer Ahmed | d68b47d | 2016-04-05 17:40:02 -0400 | [diff] [blame] | 15 | common_includes += $(display_top)/sdm/include |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 16 | |
Naseer Ahmed | c55d60a | 2013-07-11 17:42:26 -0400 | [diff] [blame] | 17 | common_header_export_path := qcom/display |
| 18 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 19 | #Common libraries external to display HAL |
| 20 | common_libs := liblog libutils libcutils libhardware |
| 21 | |
Pullakavi Srinivas | c644266 | 2016-06-22 02:20:07 +0530 | [diff] [blame] | 22 | ifeq ($(TARGET_IS_HEADLESS), true) |
| 23 | LOCAL_CLANG := false |
| 24 | else |
| 25 | LOCAL_CLANG := true |
| 26 | endif |
| 27 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 28 | #Common C flags |
Naseer Ahmed | 01d3fd3 | 2012-07-14 21:08:13 -0700 | [diff] [blame] | 29 | common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers |
Pullakavi Srinivas | c644266 | 2016-06-22 02:20:07 +0530 | [diff] [blame] | 30 | common_flags += -Wconversion -Wall -Werror -std=c++11 |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 31 | ifneq ($(TARGET_USES_GRALLOC1), true) |
| 32 | common_flags += -isystem $(display_top)/libgralloc |
| 33 | else |
| 34 | common_flags += -isystem $(display_top)/libgralloc1 |
| 35 | endif |
Naseer Ahmed | b16edac | 2012-07-15 23:56:21 -0700 | [diff] [blame] | 36 | |
Praveena Pachipulusu | 734118a | 2014-12-04 14:53:12 +0530 | [diff] [blame] | 37 | ifeq ($(TARGET_USES_POST_PROCESSING),true) |
| 38 | common_flags += -DUSES_POST_PROCESSING |
| 39 | common_includes += $(TARGET_OUT_HEADERS)/pp/inc |
| 40 | endif |
| 41 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 42 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 43 | common_flags += -D__ARM_HAVE_NEON |
| 44 | endif |
| 45 | |
Shalaj Jain | 103f666 | 2014-09-18 11:47:52 -0700 | [diff] [blame] | 46 | ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true) |
| 47 | common_flags += -DVENUS_COLOR_FORMAT |
Sushil Chauhan | c6bd6d9 | 2012-12-12 12:33:01 -0800 | [diff] [blame] | 48 | endif |
| 49 | |
Shalaj Jain | 3c49041 | 2015-04-22 16:52:03 -0700 | [diff] [blame] | 50 | ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true) |
| 51 | common_flags += -DMASTER_SIDE_CP |
| 52 | endif |
| 53 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 54 | common_deps := |
| 55 | kernel_includes := |
Saurabh Shah | 56f610d | 2012-08-07 15:27:06 -0700 | [diff] [blame] | 56 | |
Manoj Kumar AVM | a864ebc | 2016-03-21 19:44:28 -0700 | [diff] [blame] | 57 | # Executed only on QCOM BSPs |
Namit Solanki | c4c6e2d | 2016-07-11 16:56:25 +0530 | [diff] [blame^] | 58 | ifeq ($(TARGET_USES_QCOM_BSP),true) |
Manoj Kumar AVM | a864ebc | 2016-03-21 19:44:28 -0700 | [diff] [blame] | 59 | # Enable QCOM Display features |
Namit Solanki | c4c6e2d | 2016-07-11 16:56:25 +0530 | [diff] [blame^] | 60 | common_flags += -DQTI_BSP |
| 61 | endif |
Naseer Ahmed | 34bad08 | 2016-04-27 22:35:00 -0400 | [diff] [blame] | 62 | |
Pullakavi Srinivas | c644266 | 2016-06-22 02:20:07 +0530 | [diff] [blame] | 63 | ifeq ($(TARGET_IS_HEADLESS),true) |
| 64 | common_flags += -DTARGET_HEADLESS |
| 65 | endif |
| 66 | |
Naseer Ahmed | d68b47d | 2016-04-05 17:40:02 -0400 | [diff] [blame] | 67 | ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) |
Naseer Ahmed | e7ff13f | 2013-04-15 20:42:08 -0400 | [diff] [blame] | 68 | # This check is to pick the kernel headers from the right location. |
| 69 | # If the macro above is defined, we make the assumption that we have the kernel |
| 70 | # available in the build tree. |
| 71 | # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX |
| 72 | # failing which, they are picked from bionic. |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 73 | common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 74 | kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 75 | endif |