Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 1 | #Common headers |
Naseer Ahmed | 07bded6 | 2014-04-11 19:46:04 -0400 | [diff] [blame] | 2 | common_includes := $(LOCAL_PATH)/../libgralloc |
Naseer Ahmed | 07bded6 | 2014-04-11 19:46:04 -0400 | [diff] [blame] | 3 | common_includes += $(LOCAL_PATH)/../libcopybit |
| 4 | common_includes += $(LOCAL_PATH)/../libqdutils |
Naseer Ahmed | 07bded6 | 2014-04-11 19:46:04 -0400 | [diff] [blame] | 5 | common_includes += $(LOCAL_PATH)/../libqservice |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 6 | |
Naseer Ahmed | c55d60a | 2013-07-11 17:42:26 -0400 | [diff] [blame] | 7 | common_header_export_path := qcom/display |
| 8 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 9 | #Common libraries external to display HAL |
| 10 | common_libs := liblog libutils libcutils libhardware |
| 11 | |
| 12 | #Common C flags |
Naseer Ahmed | 01d3fd3 | 2012-07-14 21:08:13 -0700 | [diff] [blame] | 13 | common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers |
Naseer Ahmed | 9eb5e09 | 2014-09-25 13:24:44 -0400 | [diff] [blame] | 14 | common_flags += -Wconversion -Wall -Werror |
Naseer Ahmed | b16edac | 2012-07-15 23:56:21 -0700 | [diff] [blame] | 15 | |
Praveena Pachipulusu | 734118a | 2014-12-04 14:53:12 +0530 | [diff] [blame] | 16 | ifeq ($(TARGET_USES_POST_PROCESSING),true) |
| 17 | common_flags += -DUSES_POST_PROCESSING |
| 18 | common_includes += $(TARGET_OUT_HEADERS)/pp/inc |
| 19 | endif |
| 20 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 21 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 22 | common_flags += -D__ARM_HAVE_NEON |
| 23 | endif |
| 24 | |
Shalaj Jain | 103f666 | 2014-09-18 11:47:52 -0700 | [diff] [blame] | 25 | ifeq ($(call is-board-platform-in-list, $(MSM_VIDC_TARGET_LIST)), true) |
| 26 | common_flags += -DVENUS_COLOR_FORMAT |
Sushil Chauhan | c6bd6d9 | 2012-12-12 12:33:01 -0800 | [diff] [blame] | 27 | endif |
| 28 | |
Shalaj Jain | 3c49041 | 2015-04-22 16:52:03 -0700 | [diff] [blame] | 29 | ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true) |
| 30 | common_flags += -DMASTER_SIDE_CP |
| 31 | endif |
| 32 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 33 | common_deps := |
| 34 | kernel_includes := |
Saurabh Shah | 56f610d | 2012-08-07 15:27:06 -0700 | [diff] [blame] | 35 | |
Naseer Ahmed | 7421472 | 2013-02-09 08:11:36 -0500 | [diff] [blame] | 36 | # Executed only on QCOM BSPs |
Naseer Ahmed | e7ff13f | 2013-04-15 20:42:08 -0400 | [diff] [blame] | 37 | ifeq ($(TARGET_USES_QCOM_BSP),true) |
Arun Kumar K.R | 8e6b61c | 2013-06-25 12:18:01 -0700 | [diff] [blame] | 38 | # Enable QCOM Display features |
Naseer Ahmed | 7421472 | 2013-02-09 08:11:36 -0500 | [diff] [blame] | 39 | common_flags += -DQCOM_BSP |
Ramkumar Radhakrishnan | ad938e6 | 2013-07-11 19:24:09 -0700 | [diff] [blame] | 40 | endif |
Arun Kumar K.R | 8e6b61c | 2013-06-25 12:18:01 -0700 | [diff] [blame] | 41 | ifneq ($(call is-platform-sdk-version-at-least,18),true) |
Arun Kumar K.R | 7292155 | 2013-06-12 19:18:37 -0700 | [diff] [blame] | 42 | common_flags += -DANDROID_JELLYBEAN_MR1=1 |
| 43 | endif |
Naseer Ahmed | e7ff13f | 2013-04-15 20:42:08 -0400 | [diff] [blame] | 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. |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 50 | common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 51 | kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 52 | endif |