1# Gralloc module 2LOCAL_PATH := $(call my-dir) 3 4qmaa_flags := "" 5ifeq ($(TARGET_USES_QMAA),true) 6ifeq ($(TARGET_USES_QMAA_OVERRIDE_DISPLAY),false) 7qmaa_flags := -DQMAA -Wno-unused-parameter -Wno-unused-variable 8qmaa_flags += -DTARGET_ION_ABI_VERSION=2 9endif 10endif 11 12include $(LOCAL_PATH)/../common.mk 13include $(LIBION_HEADER_PATH_WRAPPER) 14include $(CLEAR_VARS) 15 16LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM) 17LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 18LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 19LOCAL_SANITIZE := integer_overflow 20LOCAL_VENDOR_MODULE := true 21LOCAL_MODULE_RELATIVE_PATH := hw 22LOCAL_MODULE_TAGS := optional 23LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 24 25LOCAL_HEADER_LIBRARIES := display_headers 26LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \ 27 libgralloccore \ 28 android.hardware.graphics.mapper@2.0 \ 29 android.hardware.graphics.mapper@2.1 \ 30 android.hardware.graphics.mapper@3.0 \ 31 android.hardware.graphics.mapper@4.0 32LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror \ 33 -D__QTI_DISPLAY_GRALLOC__ 34LOCAL_CLANG := true 35LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 36LOCAL_SRC_FILES := gr_device_impl.cpp 37include $(BUILD_SHARED_LIBRARY) 38 39#libgralloccore 40include $(CLEAR_VARS) 41LOCAL_MODULE := libgralloccore 42LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 43LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 44LOCAL_SANITIZE := integer_overflow 45LOCAL_VENDOR_MODULE := true 46LOCAL_MODULE_TAGS := optional 47LOCAL_C_INCLUDES := $(common_includes) \ 48 system/memory/libion/include \ 49 system/memory/libion/kernel-headers \ 50 $(kernel_includes) 51 52LOCAL_HEADER_LIBRARIES := display_headers 53LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion libgralloctypes \ 54 libgralloc.qti libhidlbase \ 55 android.hardware.graphics.mapper@2.1 \ 56 android.hardware.graphics.mapper@3.0 \ 57 android.hardware.graphics.mapper@4.0 58LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 59 -D__QTI_DISPLAY_GRALLOC__ 60LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 61LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp 62include $(BUILD_SHARED_LIBRARY) 63 64#mapper 65include $(CLEAR_VARS) 66LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-qti-display 67LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 68LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 69LOCAL_SANITIZE := integer_overflow 70LOCAL_VENDOR_MODULE := true 71LOCAL_MODULE_RELATIVE_PATH := hw 72LOCAL_MODULE_TAGS := optional 73LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 74LOCAL_HEADER_LIBRARIES := display_headers 75LOCAL_SHARED_LIBRARIES := $(common_libs) \ 76 libhidlbase \ 77 libqdMetaData \ 78 libgrallocutils \ 79 libgralloccore \ 80 libsync \ 81 vendor.qti.hardware.display.mapper@3.0 \ 82 vendor.qti.hardware.display.mapperextensions@1.0 \ 83 android.hardware.graphics.mapper@2.0 \ 84 android.hardware.graphics.mapper@2.1 \ 85 vendor.qti.hardware.display.mapperextensions@1.1 \ 86 android.hardware.graphics.mapper@3.0 87LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 88 -D__QTI_DISPLAY_GRALLOC__ 89LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 90LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp 91LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml 92include $(BUILD_SHARED_LIBRARY) 93 94ifneq ($(TARGET_USES_GRALLOC4),false) 95include $(CLEAR_VARS) 96LOCAL_MODULE := android.hardware.graphics.mapper@4.0-impl-qti-display 97LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 98LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 99LOCAL_SANITIZE := integer_overflow 100LOCAL_VENDOR_MODULE := true 101LOCAL_MODULE_RELATIVE_PATH := hw 102LOCAL_MODULE_TAGS := optional 103LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 104LOCAL_HEADER_LIBRARIES := display_headers 105LOCAL_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 120LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 121 -D__QTI_DISPLAY_GRALLOC__ 122LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 123LOCAL_SRC_FILES := QtiMapper4.cpp QtiMapperExtensions.cpp 124LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml 125include $(BUILD_SHARED_LIBRARY) 126endif 127 128#allocator 129include $(CLEAR_VARS) 130LOCAL_MODULE := vendor.qti.hardware.display.allocator-service 131LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 132LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 133LOCAL_SANITIZE := integer_overflow 134LOCAL_VENDOR_MODULE := true 135LOCAL_MODULE_RELATIVE_PATH := hw 136LOCAL_MODULE_TAGS := optional 137LOCAL_HEADER_LIBRARIES := display_headers 138LOCAL_SHARED_LIBRARIES := $(common_libs) \ 139 libhidlbase \ 140 libqdMetaData \ 141 libgrallocutils \ 142 libgralloccore \ 143 libgralloctypes \ 144 vendor.qti.hardware.display.allocator@4.0 \ 145 vendor.qti.hardware.display.allocator@3.0 \ 146 vendor.qti.hardware.display.mapper@4.0 \ 147 vendor.qti.hardware.display.mapper@3.0 \ 148 android.hardware.graphics.mapper@4.0 \ 149 android.hardware.graphics.mapper@3.0 \ 150 android.hardware.graphics.mapper@2.1 \ 151 android.hardware.graphics.allocator@4.0 \ 152 android.hardware.graphics.allocator@3.0 \ 153 vendor.qti.hardware.display.mapperextensions@1.0 \ 154 vendor.qti.hardware.display.mapperextensions@1.1 155LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags) $(qmaa_flags) 156ifneq ($(TARGET_USES_GRALLOC4),false) 157LOCAL_CFLAGS += -DTARGET_USES_GRALLOC4 158endif 159LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 160LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 161LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp 162LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc 163LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml 164include $(BUILD_EXECUTABLE) 165