1# Gralloc module 2LOCAL_PATH := $(call my-dir) 3include $(LOCAL_PATH)/../common.mk 4include $(CLEAR_VARS) 5 6LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM) 7LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 8LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 9LOCAL_VENDOR_MODULE := true 10LOCAL_MODULE_RELATIVE_PATH := hw 11LOCAL_MODULE_TAGS := optional 12LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 13 14LOCAL_HEADER_LIBRARIES := display_headers 15LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \ 16 libgralloccore \ 17 android.hardware.graphics.mapper@2.0 \ 18 android.hardware.graphics.mapper@2.1 19LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror 20LOCAL_CLANG := true 21LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 22LOCAL_SRC_FILES := gr_device_impl.cpp 23LOCAL_COPY_HEADERS_TO := $(common_header_export_path) 24LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h 25include $(BUILD_SHARED_LIBRARY) 26 27#libgrallocutils 28include $(CLEAR_VARS) 29LOCAL_MODULE := libgrallocutils 30LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 31LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 32LOCAL_VENDOR_MODULE := true 33LOCAL_MODULE_TAGS := optional 34LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 35LOCAL_HEADER_LIBRARIES := display_headers 36LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \ 37 android.hardware.graphics.mapper@2.0 \ 38 android.hardware.graphics.mapper@2.1 39LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion 40LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 41LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp 42include $(BUILD_SHARED_LIBRARY) 43 44#libgralloccore 45include $(CLEAR_VARS) 46LOCAL_MODULE := libgralloccore 47LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 48LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 49LOCAL_VENDOR_MODULE := true 50LOCAL_MODULE_TAGS := optional 51LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 52LOCAL_HEADER_LIBRARIES := display_headers 53LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils \ 54 android.hardware.graphics.mapper@2.1 55LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion 56LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 57LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp 58include $(BUILD_SHARED_LIBRARY) 59 60 61qti_mapper_version := $(shell \ 62 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.0" ];\ 63 then echo QTI_MAPPER_1_0; fi) 64 65qti_allocator_version := $(shell \ 66 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/allocator/1.0" ];\ 67 then echo QTI_ALLOCATOR_1_0; fi) 68 69 70#mapper 71include $(CLEAR_VARS) 72LOCAL_MODULE := android.hardware.graphics.mapper@2.0-impl-qti-display 73LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 74LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 75LOCAL_VENDOR_MODULE := true 76LOCAL_MODULE_RELATIVE_PATH := hw 77LOCAL_MODULE_TAGS := optional 78LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 79LOCAL_HEADER_LIBRARIES := display_headers 80LOCAL_SHARED_LIBRARIES := $(common_libs) \ 81 libhidlbase \ 82 libqdMetaData \ 83 libgrallocutils \ 84 libgralloccore \ 85 libsync \ 86 android.hardware.graphics.mapper@2.0 \ 87 android.hardware.graphics.mapper@2.1 88LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion 89LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 90LOCAL_SRC_FILES := QtiMapper.cpp 91include $(BUILD_SHARED_LIBRARY) 92 93include $(CLEAR_VARS) 94LOCAL_MODULE := vendor.qti.hardware.display.allocator@1.0-service 95LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 96LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 97LOCAL_VENDOR_MODULE := true 98LOCAL_MODULE_RELATIVE_PATH := hw 99LOCAL_MODULE_TAGS := optional 100LOCAL_HEADER_LIBRARIES := display_headers 101LOCAL_SHARED_LIBRARIES := $(common_libs) \ 102 libhidlbase \ 103 libqdMetaData \ 104 libgrallocutils \ 105 libgralloccore \ 106 android.hardware.graphics.mapper@2.1 \ 107 android.hardware.graphics.allocator@2.0 108LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags) 109LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 110LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 111LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp 112LOCAL_INIT_RC := vendor.qti.hardware.display.allocator@1.0-service.rc 113include $(BUILD_EXECUTABLE) 114