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_SANITIZE := integer_overflow 18LOCAL_VENDOR_MODULE := true 19LOCAL_MODULE_RELATIVE_PATH := hw 20LOCAL_MODULE_TAGS := optional 21LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 22 23LOCAL_HEADER_LIBRARIES := display_headers 24LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \ 25 libgralloccore \ 26 android.hardware.graphics.mapper@2.0 \ 27 android.hardware.graphics.mapper@2.1 \ 28 android.hardware.graphics.mapper@3.0 \ 29 android.hardware.graphics.mapper@4.0 30LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror \ 31 -D__QTI_DISPLAY_GRALLOC__ 32LOCAL_CLANG := true 33LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 34LOCAL_SRC_FILES := gr_device_impl.cpp 35include $(BUILD_SHARED_LIBRARY) 36 37#libgrallocutils 38include $(CLEAR_VARS) 39LOCAL_MODULE := libgrallocutils 40LOCAL_VENDOR_MODULE := true 41LOCAL_SANITIZE := integer_overflow 42LOCAL_MODULE_TAGS := optional 43LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 44LOCAL_HEADER_LIBRARIES := display_headers 45LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \ 46 android.hardware.graphics.common@1.2 \ 47 android.hardware.graphics.mapper@2.0 \ 48 android.hardware.graphics.mapper@2.1 \ 49 android.hardware.graphics.mapper@3.0 \ 50 android.hardware.graphics.mapper@4.0 51LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 52 -D__QTI_DISPLAY_GRALLOC__ 53LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 54LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp gr_camera_info.cpp 55include $(BUILD_SHARED_LIBRARY) 56 57#libgralloccore 58include $(CLEAR_VARS) 59LOCAL_MODULE := libgralloccore 60LOCAL_SANITIZE := integer_overflow 61LOCAL_VENDOR_MODULE := true 62LOCAL_MODULE_TAGS := optional 63LOCAL_C_INCLUDES := $(common_includes) \ 64 system/memory/libion/include \ 65 system/memory/libion/kernel-headers \ 66 $(kernel_includes) 67 68LOCAL_HEADER_LIBRARIES := display_headers 69LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion libgralloctypes \ 70 libgralloc.qti libhidlbase \ 71 android.hardware.graphics.mapper@2.1 \ 72 android.hardware.graphics.mapper@3.0 \ 73 android.hardware.graphics.mapper@4.0 74LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 75 -D__QTI_DISPLAY_GRALLOC__ 76LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 77LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp 78include $(BUILD_SHARED_LIBRARY) 79 80#mapper 81include $(CLEAR_VARS) 82LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-qti-display 83LOCAL_SANITIZE := integer_overflow 84LOCAL_VENDOR_MODULE := true 85LOCAL_MODULE_RELATIVE_PATH := hw 86LOCAL_MODULE_TAGS := optional 87LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 88LOCAL_HEADER_LIBRARIES := display_headers 89LOCAL_SHARED_LIBRARIES := $(common_libs) \ 90 libhidlbase \ 91 libqdMetaData \ 92 libgrallocutils \ 93 libgralloccore \ 94 libsync \ 95 vendor.qti.hardware.display.mapper@3.0 \ 96 vendor.qti.hardware.display.mapperextensions@1.0 \ 97 android.hardware.graphics.mapper@2.0 \ 98 android.hardware.graphics.mapper@2.1 \ 99 vendor.qti.hardware.display.mapperextensions@1.1 \ 100 android.hardware.graphics.mapper@3.0 101LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 102 -D__QTI_DISPLAY_GRALLOC__ 103LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 104LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp 105LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml 106include $(BUILD_SHARED_LIBRARY) 107 108ifneq ($(TARGET_USES_GRALLOC4),false) 109include $(CLEAR_VARS) 110LOCAL_MODULE := android.hardware.graphics.mapper@4.0-impl-qti-display 111LOCAL_SANITIZE := integer_overflow 112LOCAL_VENDOR_MODULE := true 113LOCAL_MODULE_RELATIVE_PATH := hw 114LOCAL_MODULE_TAGS := optional 115LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 116LOCAL_HEADER_LIBRARIES := display_headers 117LOCAL_SHARED_LIBRARIES := $(common_libs) \ 118 libhidlbase \ 119 libhidltransport \ 120 libqdMetaData \ 121 libgrallocutils \ 122 libgralloccore \ 123 libsync \ 124 libgralloctypes \ 125 vendor.qti.hardware.display.mapper@4.0 \ 126 vendor.qti.hardware.display.mapperextensions@1.0 \ 127 android.hardware.graphics.mapper@2.0 \ 128 android.hardware.graphics.mapper@2.1 \ 129 vendor.qti.hardware.display.mapperextensions@1.1 \ 130 android.hardware.graphics.mapper@3.0 \ 131 android.hardware.graphics.mapper@4.0 132LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \ 133 -D__QTI_DISPLAY_GRALLOC__ 134LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 135LOCAL_SRC_FILES := QtiMapper4.cpp QtiMapperExtensions.cpp 136LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml 137include $(BUILD_SHARED_LIBRARY) 138endif 139 140#allocator 141include $(CLEAR_VARS) 142LOCAL_MODULE := vendor.qti.hardware.display.allocator-service 143LOCAL_SANITIZE := integer_overflow 144LOCAL_VENDOR_MODULE := true 145LOCAL_MODULE_RELATIVE_PATH := hw 146LOCAL_MODULE_TAGS := optional 147LOCAL_HEADER_LIBRARIES := display_headers 148LOCAL_SHARED_LIBRARIES := $(common_libs) \ 149 libhidlbase \ 150 libqdMetaData \ 151 libgrallocutils \ 152 libgralloccore \ 153 libgralloctypes \ 154 vendor.qti.hardware.display.allocator@4.0 \ 155 vendor.qti.hardware.display.allocator@3.0 \ 156 vendor.qti.hardware.display.mapper@4.0 \ 157 vendor.qti.hardware.display.mapper@3.0 \ 158 android.hardware.graphics.mapper@4.0 \ 159 android.hardware.graphics.mapper@3.0 \ 160 android.hardware.graphics.mapper@2.1 \ 161 android.hardware.graphics.allocator@4.0 \ 162 android.hardware.graphics.allocator@3.0 \ 163 vendor.qti.hardware.display.mapperextensions@1.0 \ 164 vendor.qti.hardware.display.mapperextensions@1.1 165LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags) $(qmaa_flags) 166ifneq ($(TARGET_USES_GRALLOC4),false) 167LOCAL_CFLAGS += -DTARGET_USES_GRALLOC4 168endif 169LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 170LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 171LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp 172LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc 173LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml 174include $(BUILD_EXECUTABLE) 175