Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 1 | #Common headers |
| 2 | common_includes := hardware/qcom/display/libgralloc |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 3 | common_includes += hardware/qcom/display/liboverlay |
Naseer Ahmed | 31da0b1 | 2012-07-31 18:55:33 -0700 | [diff] [blame] | 4 | common_includes += hardware/qcom/display/libcopybit |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 5 | common_includes += hardware/qcom/display/libqdutils |
Saurabh Shah | 56f610d | 2012-08-07 15:27:06 -0700 | [diff] [blame] | 6 | common_includes += hardware/qcom/display/libhwcomposer |
| 7 | common_includes += hardware/qcom/display/libexternal |
| 8 | common_includes += hardware/qcom/display/libqservice |
Jeykumar Sankaran | 27dee26 | 2013-08-01 17:09:54 -0700 | [diff] [blame] | 9 | common_includes += hardware/qcom/display/libvirtual |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 10 | |
| 11 | ifeq ($(TARGET_USES_POST_PROCESSING),true) |
| 12 | common_flags += -DUSES_POST_PROCESSING |
Naseer Ahmed | 58780b9 | 2013-07-29 17:41:40 -0400 | [diff] [blame] | 13 | common_includes += $(TARGET_OUT_HEADERS)/pp/inc |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 14 | endif |
| 15 | |
Naseer Ahmed | c55d60a | 2013-07-11 17:42:26 -0400 | [diff] [blame] | 16 | common_header_export_path := qcom/display |
| 17 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 18 | #Common libraries external to display HAL |
| 19 | common_libs := liblog libutils libcutils libhardware |
| 20 | |
Saurabh Shah | 5daeee5 | 2013-01-23 16:52:26 +0800 | [diff] [blame] | 21 | ifeq ($(TARGET_USES_POST_PROCESSING),true) |
| 22 | common_libs += libmm-abl |
| 23 | endif |
| 24 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 25 | #Common C flags |
Naseer Ahmed | 01d3fd3 | 2012-07-14 21:08:13 -0700 | [diff] [blame] | 26 | common_flags := -DDEBUG_CALC_FPS -Wno-missing-field-initializers |
Arun Kumar K.R | 5878ddc | 2014-02-18 12:40:58 -0800 | [diff] [blame^] | 27 | #TODO: Add -Werror back once all the current warnings are fixed |
| 28 | common_flags += -Wconversion -Wall |
Naseer Ahmed | b16edac | 2012-07-15 23:56:21 -0700 | [diff] [blame] | 29 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 30 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 31 | common_flags += -D__ARM_HAVE_NEON |
| 32 | endif |
| 33 | |
Saurabh Shah | c9e2157 | 2013-07-16 17:41:48 -0700 | [diff] [blame] | 34 | ifeq ($(call is-board-platform-in-list, msm8974 msm8226 msm8610 apq8084 \ |
Sivalatha Chakrala | 10cd49e | 2013-12-12 22:24:05 +0530 | [diff] [blame] | 35 | mpq8092 msm_bronze msm8916), true) |
Sushil Chauhan | c6bd6d9 | 2012-12-12 12:33:01 -0800 | [diff] [blame] | 36 | common_flags += -DVENUS_COLOR_FORMAT |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 37 | common_flags += -DMDSS_TARGET |
Sushil Chauhan | c6bd6d9 | 2012-12-12 12:33:01 -0800 | [diff] [blame] | 38 | endif |
| 39 | |
Zohaib Alam | 1bb6561 | 2013-09-28 03:38:20 -0400 | [diff] [blame] | 40 | ifeq ($(call is-board-platform-in-list, mpq8092), true) |
Naseer Ahmed | 58780b9 | 2013-07-29 17:41:40 -0400 | [diff] [blame] | 41 | common_flags += -DVPU_TARGET |
| 42 | endif |
| 43 | |
| 44 | |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 45 | common_deps := |
| 46 | kernel_includes := |
Saurabh Shah | 56f610d | 2012-08-07 15:27:06 -0700 | [diff] [blame] | 47 | |
Naseer Ahmed | 7421472 | 2013-02-09 08:11:36 -0500 | [diff] [blame] | 48 | # Executed only on QCOM BSPs |
Naseer Ahmed | e7ff13f | 2013-04-15 20:42:08 -0400 | [diff] [blame] | 49 | ifeq ($(TARGET_USES_QCOM_BSP),true) |
Arun Kumar K.R | 8e6b61c | 2013-06-25 12:18:01 -0700 | [diff] [blame] | 50 | # Enable QCOM Display features |
Naseer Ahmed | 7421472 | 2013-02-09 08:11:36 -0500 | [diff] [blame] | 51 | common_flags += -DQCOM_BSP |
Ramkumar Radhakrishnan | ad938e6 | 2013-07-11 19:24:09 -0700 | [diff] [blame] | 52 | endif |
Arun Kumar K.R | 8e6b61c | 2013-06-25 12:18:01 -0700 | [diff] [blame] | 53 | ifneq ($(call is-platform-sdk-version-at-least,18),true) |
Arun Kumar K.R | 7292155 | 2013-06-12 19:18:37 -0700 | [diff] [blame] | 54 | common_flags += -DANDROID_JELLYBEAN_MR1=1 |
| 55 | endif |
Naseer Ahmed | e7ff13f | 2013-04-15 20:42:08 -0400 | [diff] [blame] | 56 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 57 | # This check is to pick the kernel headers from the right location. |
| 58 | # If the macro above is defined, we make the assumption that we have the kernel |
| 59 | # available in the build tree. |
| 60 | # If the macro is not present, the headers are picked from hardware/qcom/msmXXXX |
| 61 | # failing which, they are picked from bionic. |
Naseer Ahmed | 4d35af8 | 2012-07-11 23:43:42 -0700 | [diff] [blame] | 62 | common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 63 | kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 64 | endif |