blob: 2560d10e8833b4d686ee5c9146b696d4dcec4cdf [file] [log] [blame]
# Gralloc module
LOCAL_PATH := $(call my-dir)
qmaa_flags := ""
ifeq ($(TARGET_USES_QMAA),true)
ifeq ($(TARGET_USES_QMAA_OVERRIDE_DISPLAY),false)
qmaa_flags := -DQMAA -Wno-unused-parameter -Wno-unused-variable
qmaa_flags += -DTARGET_ION_ABI_VERSION=2
endif
endif
include $(LOCAL_PATH)/../common.mk
include $(CLEAR_VARS)
#libgrallocutils
include $(CLEAR_VARS)
LOCAL_MODULE := libgrallocutils
LOCAL_VENDOR_MODULE := true
LOCAL_SANITIZE := integer_overflow
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \
android.hardware.graphics.mapper@2.0 \
android.hardware.graphics.mapper@2.1 \
android.hardware.graphics.mapper@3.0
LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp gr_camera_info.cpp
include $(BUILD_SHARED_LIBRARY)
#libgralloccore
include $(CLEAR_VARS)
LOCAL_MODULE := libgralloccore
LOCAL_SANITIZE := integer_overflow
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(common_includes) \
system/core/libion/include \
system/core/libion/kernel-headers \
$(kernel_includes)
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion \
android.hardware.graphics.mapper@2.1 \
android.hardware.graphics.mapper@3.0
LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
include $(BUILD_SHARED_LIBRARY)
#mapper
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-qti-display
LOCAL_SANITIZE := integer_overflow
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_SHARED_LIBRARIES := $(common_libs) \
libhidlbase \
libhidltransport \
libqdMetaData \
libgrallocutils \
libgralloccore \
libsync \
vendor.qti.hardware.display.mapper@3.0 \
vendor.qti.hardware.display.mapperextensions@1.0 \
android.hardware.graphics.mapper@2.0 \
android.hardware.graphics.mapper@2.1 \
vendor.qti.hardware.display.mapperextensions@1.1 \
android.hardware.graphics.mapper@3.0
LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp
LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml
include $(BUILD_SHARED_LIBRARY)
#allocator
include $(CLEAR_VARS)
LOCAL_MODULE := vendor.qti.hardware.display.allocator-service
LOCAL_SANITIZE := integer_overflow
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_SHARED_LIBRARIES := $(common_libs) \
libhidlbase \
libhidltransport\
libqdMetaData \
libgrallocutils \
libgralloccore \
vendor.qti.hardware.display.allocator@3.0 \
android.hardware.graphics.mapper@3.0 \
android.hardware.graphics.mapper@2.1 \
android.hardware.graphics.allocator@3.0
LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags) $(qmaa_flags)
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp
LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc
LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml
include $(BUILD_EXECUTABLE)