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