Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 1 | # Gralloc module |
| 2 | LOCAL_PATH := $(call my-dir) |
| 3 | include $(LOCAL_PATH)/../common.mk |
Ramakant Singh | a701e66 | 2020-02-18 10:22:46 +0530 | [diff] [blame] | 4 | include $(LIBION_HEADER_PATH_WRAPPER) |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
| 6 | |
Naseer Ahmed | 755af6b | 2019-04-15 19:49:29 -0400 | [diff] [blame] | 7 | LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM) |
Naseer Ahmed | 725789e | 2017-05-17 13:41:10 -0400 | [diff] [blame] | 8 | LOCAL_VENDOR_MODULE := true |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 9 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 10 | LOCAL_MODULE_TAGS := optional |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 11 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 12 | |
Naseer Ahmed | 4d78d03 | 2017-03-22 12:47:30 -0400 | [diff] [blame] | 13 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 14 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \ |
| 15 | libgralloccore \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 16 | android.hardware.graphics.mapper@2.0 \ |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 17 | android.hardware.graphics.mapper@2.1 \ |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 18 | android.hardware.graphics.mapper@3.0 \ |
| 19 | android.hardware.graphics.mapper@4.0 |
| 20 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror \ |
| 21 | -D__QTI_DISPLAY_GRALLOC__ |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 22 | LOCAL_CLANG := true |
Isaac J. Manjarres | 857a499 | 2019-04-22 17:18:05 -0700 | [diff] [blame] | 23 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 24 | LOCAL_SRC_FILES := gr_device_impl.cpp |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 25 | include $(BUILD_SHARED_LIBRARY) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 26 | |
| 27 | #libgrallocutils |
| 28 | include $(CLEAR_VARS) |
| 29 | LOCAL_MODULE := libgrallocutils |
Naseer Ahmed | 725789e | 2017-05-17 13:41:10 -0400 | [diff] [blame] | 30 | LOCAL_VENDOR_MODULE := true |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 31 | LOCAL_MODULE_TAGS := optional |
| 32 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 33 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 34 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 35 | android.hardware.graphics.mapper@2.0 \ |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 36 | android.hardware.graphics.mapper@2.1 \ |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 37 | android.hardware.graphics.mapper@3.0 \ |
| 38 | android.hardware.graphics.mapper@4.0 |
| 39 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ |
| 40 | -D__QTI_DISPLAY_GRALLOC__ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 41 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 42 | LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp |
| 43 | include $(BUILD_SHARED_LIBRARY) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 44 | |
| 45 | #libgralloccore |
| 46 | include $(CLEAR_VARS) |
| 47 | LOCAL_MODULE := libgralloccore |
| 48 | LOCAL_VENDOR_MODULE := true |
| 49 | LOCAL_MODULE_TAGS := optional |
| 50 | LOCAL_C_INCLUDES := $(common_includes) \ |
Ramakant Singh | a701e66 | 2020-02-18 10:22:46 +0530 | [diff] [blame] | 51 | $(LIBION_HEADER_PATHS) \ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 52 | $(kernel_includes) |
| 53 | |
| 54 | LOCAL_HEADER_LIBRARIES := display_headers |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 55 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion libgralloctypes \ |
| 56 | libgralloc.qti libhidlbase \ |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 57 | android.hardware.graphics.mapper@2.1 \ |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 58 | android.hardware.graphics.mapper@3.0 \ |
| 59 | android.hardware.graphics.mapper@4.0 |
| 60 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ |
| 61 | -D__QTI_DISPLAY_GRALLOC__ |
Xiaowen Wu | 139436c | 2019-11-22 17:06:30 -0500 | [diff] [blame] | 62 | ifeq ($(ENABLE_HYP),true) |
| 63 | LOCAL_CFLAGS += -DHYPERVISOR |
| 64 | endif |
Isaac J. Manjarres | 857a499 | 2019-04-22 17:18:05 -0700 | [diff] [blame] | 65 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 66 | LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp |
| 67 | include $(BUILD_SHARED_LIBRARY) |
| 68 | |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 69 | #mapper |
| 70 | include $(CLEAR_VARS) |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 71 | LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-qti-display |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 72 | LOCAL_VENDOR_MODULE := true |
| 73 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 74 | LOCAL_MODULE_TAGS := optional |
| 75 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 76 | LOCAL_HEADER_LIBRARIES := display_headers |
| 77 | LOCAL_SHARED_LIBRARIES := $(common_libs) \ |
| 78 | libhidlbase \ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 79 | libqdMetaData \ |
| 80 | libgrallocutils \ |
| 81 | libgralloccore \ |
| 82 | libsync \ |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 83 | vendor.qti.hardware.display.mapper@3.0 \ |
Tharaga Balachandran | f7e62a3 | 2019-06-06 11:33:29 -0400 | [diff] [blame] | 84 | vendor.qti.hardware.display.mapperextensions@1.0 \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 85 | android.hardware.graphics.mapper@2.0 \ |
Ashish Kumar | 2543577 | 2019-08-06 16:15:56 +0530 | [diff] [blame] | 86 | android.hardware.graphics.mapper@2.1 \ |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 87 | vendor.qti.hardware.display.mapperextensions@1.1 \ |
| 88 | android.hardware.graphics.mapper@3.0 |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 89 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ |
| 90 | -D__QTI_DISPLAY_GRALLOC__ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 91 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
Tharaga Balachandran | f7e62a3 | 2019-06-06 11:33:29 -0400 | [diff] [blame] | 92 | LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp |
Tharaga Balachandran | 0af4889 | 2019-08-08 18:04:34 -0400 | [diff] [blame] | 93 | LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 94 | include $(BUILD_SHARED_LIBRARY) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 95 | |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 96 | ifneq ($(TARGET_USES_GRALLOC4),false) |
| 97 | include $(CLEAR_VARS) |
| 98 | LOCAL_MODULE := android.hardware.graphics.mapper@4.0-impl-qti-display |
| 99 | LOCAL_SANITIZE := integer_overflow |
| 100 | LOCAL_VENDOR_MODULE := true |
| 101 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 102 | LOCAL_MODULE_TAGS := optional |
| 103 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 104 | LOCAL_HEADER_LIBRARIES := display_headers |
| 105 | LOCAL_SHARED_LIBRARIES := $(common_libs) \ |
| 106 | libhidlbase \ |
| 107 | libhidltransport \ |
| 108 | libqdMetaData \ |
| 109 | libgrallocutils \ |
| 110 | libgralloccore \ |
| 111 | libsync \ |
| 112 | libgralloctypes \ |
| 113 | vendor.qti.hardware.display.mapper@4.0 \ |
| 114 | vendor.qti.hardware.display.mapperextensions@1.0 \ |
| 115 | android.hardware.graphics.mapper@2.0 \ |
| 116 | android.hardware.graphics.mapper@2.1 \ |
| 117 | vendor.qti.hardware.display.mapperextensions@1.1 \ |
| 118 | android.hardware.graphics.mapper@3.0 \ |
| 119 | android.hardware.graphics.mapper@4.0 |
| 120 | LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ |
| 121 | -D__QTI_DISPLAY_GRALLOC__ |
| 122 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
| 123 | LOCAL_SRC_FILES := QtiMapper4.cpp QtiMapperExtensions.cpp |
| 124 | LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml |
| 125 | include $(BUILD_SHARED_LIBRARY) |
| 126 | endif |
| 127 | |
Ashish Kumar | f04c3de | 2018-08-01 14:45:14 +0530 | [diff] [blame] | 128 | #allocator |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 129 | include $(CLEAR_VARS) |
Tharaga Balachandran | f7e62a3 | 2019-06-06 11:33:29 -0400 | [diff] [blame] | 130 | LOCAL_MODULE := vendor.qti.hardware.display.allocator-service |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 131 | LOCAL_VENDOR_MODULE := true |
| 132 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 133 | LOCAL_MODULE_TAGS := optional |
| 134 | LOCAL_HEADER_LIBRARIES := display_headers |
| 135 | LOCAL_SHARED_LIBRARIES := $(common_libs) \ |
| 136 | libhidlbase \ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 137 | libqdMetaData \ |
| 138 | libgrallocutils \ |
| 139 | libgralloccore \ |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 140 | libgralloctypes \ |
| 141 | vendor.qti.hardware.display.allocator@4.0 \ |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 142 | vendor.qti.hardware.display.allocator@3.0 \ |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 143 | vendor.qti.hardware.display.mapper@4.0 \ |
| 144 | vendor.qti.hardware.display.mapper@3.0 \ |
| 145 | android.hardware.graphics.mapper@4.0 \ |
Tharaga Balachandran | ab150ab | 2019-09-26 19:17:58 -0400 | [diff] [blame] | 146 | android.hardware.graphics.mapper@3.0 \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 147 | android.hardware.graphics.mapper@2.1 \ |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 148 | android.hardware.graphics.allocator@4.0 \ |
| 149 | android.hardware.graphics.allocator@3.0 \ |
| 150 | vendor.qti.hardware.display.mapperextensions@1.0 \ |
| 151 | vendor.qti.hardware.display.mapperextensions@1.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 152 | LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags) |
Tharaga Balachandran | 74ab111 | 2020-01-08 17:17:56 -0500 | [diff] [blame^] | 153 | ifneq ($(TARGET_USES_GRALLOC4),false) |
| 154 | LOCAL_CFLAGS += -DTARGET_USES_GRALLOC4 |
| 155 | endif |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 156 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
| 157 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 158 | LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp |
Tharaga Balachandran | f7e62a3 | 2019-06-06 11:33:29 -0400 | [diff] [blame] | 159 | LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc |
Tharaga Balachandran | 0af4889 | 2019-08-08 18:04:34 -0400 | [diff] [blame] | 160 | LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 161 | include $(BUILD_EXECUTABLE) |