1# Gralloc module 2LOCAL_PATH := $(call my-dir) 3LIBION_HEADER_PATH_WRAPPER := $(QC_OPEN_PATH)/core-utils/build/libion_header_paths/libion_path.mk 4 5include $(LOCAL_PATH)/../common.mk 6include $(LIBION_HEADER_PATH_WRAPPER) 7include $(CLEAR_VARS) 8 9LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM) 10LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 11LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 12LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 13LOCAL_VENDOR_MODULE := true 14LOCAL_MODULE_RELATIVE_PATH := hw 15LOCAL_MODULE_TAGS := optional 16LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 17 18LOCAL_HEADER_LIBRARIES := display_headers 19LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \ 20 libgralloccore \ 21 android.hardware.graphics.mapper@2.0 \ 22 android.hardware.graphics.mapper@2.1 \ 23 android.hardware.graphics.mapper@3.0 \ 24 android.hardware.graphics.mapper@4.0 25LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror \ 26 -D__QTI_DISPLAY_GRALLOC__ 27LOCAL_CLANG := true 28LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 29LOCAL_SRC_FILES := gr_device_impl.cpp 30include $(BUILD_SHARED_LIBRARY) 31 32#libgralloccore 33include $(CLEAR_VARS) 34LOCAL_MODULE := libgralloccore 35LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 36LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 37LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 38LOCAL_VENDOR_MODULE := true 39LOCAL_MODULE_TAGS := optional 40LOCAL_C_INCLUDES := $(common_includes) \ 41 $(LIBION_HEADER_PATHS) \ 42 $(kernel_includes) 43 44LOCAL_HEADER_LIBRARIES := display_headers 45LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion libgralloctypes \ 46 libgralloc.qti libhidlbase \ 47 android.hardware.graphics.mapper@2.1 \ 48 android.hardware.graphics.mapper@3.0 \ 49 android.hardware.graphics.mapper@4.0 50LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 51 -D__QTI_DISPLAY_GRALLOC__ 52ifeq ($(ENABLE_HYP),true) 53LOCAL_CFLAGS += -DHYPERVISOR 54endif 55 56ifneq ($(TARGET_USES_GRALLOC4),false) 57LOCAL_CFLAGS += -DTARGET_USES_GRALLOC4 58endif 59LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 60LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp 61include $(BUILD_SHARED_LIBRARY) 62 63#mapper 64include $(CLEAR_VARS) 65LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-qti-display 66LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 67LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 68LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 69LOCAL_VENDOR_MODULE := true 70LOCAL_MODULE_RELATIVE_PATH := hw 71LOCAL_MODULE_TAGS := optional 72LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 73LOCAL_HEADER_LIBRARIES := display_headers 74LOCAL_SHARED_LIBRARIES := $(common_libs) \ 75 libhidlbase \ 76 libqdMetaData \ 77 libgrallocutils \ 78 libgralloccore \ 79 libsync \ 80 vendor.qti.hardware.display.mapper@3.0 \ 81 vendor.qti.hardware.display.mapperextensions@1.0 \ 82 android.hardware.graphics.mapper@2.0 \ 83 android.hardware.graphics.mapper@2.1 \ 84 vendor.qti.hardware.display.mapperextensions@1.1 \ 85 android.hardware.graphics.mapper@3.0 86LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 87 -D__QTI_DISPLAY_GRALLOC__ 88LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 89LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp 90#LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml 91include $(BUILD_SHARED_LIBRARY) 92 93ifneq ($(TARGET_USES_GRALLOC4),false) 94include $(CLEAR_VARS) 95LOCAL_MODULE := android.hardware.graphics.mapper@4.0-impl-qti-display 96LOCAL_SANITIZE := integer_overflow 97LOCAL_VENDOR_MODULE := true 98LOCAL_MODULE_RELATIVE_PATH := hw 99LOCAL_MODULE_TAGS := optional 100LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 101LOCAL_HEADER_LIBRARIES := display_headers 102LOCAL_SHARED_LIBRARIES := $(common_libs) \ 103 libhidlbase \ 104 libhidltransport \ 105 libqdMetaData \ 106 libgrallocutils \ 107 libgralloccore \ 108 libsync \ 109 libgralloctypes \ 110 vendor.qti.hardware.display.mapper@4.0 \ 111 vendor.qti.hardware.display.mapperextensions@1.0 \ 112 android.hardware.graphics.mapper@2.0 \ 113 android.hardware.graphics.mapper@2.1 \ 114 vendor.qti.hardware.display.mapperextensions@1.1 \ 115 android.hardware.graphics.mapper@3.0 \ 116 android.hardware.graphics.mapper@4.0 117LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 118 -D__QTI_DISPLAY_GRALLOC__ 119LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 120LOCAL_SRC_FILES := QtiMapper4.cpp QtiMapperExtensions.cpp 121#LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml 122LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 123LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 124LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 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_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 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) 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 163#LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml 164include $(BUILD_EXECUTABLE) 165