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) \ 13 $(kernel_includes) \ 14 external/libcxx/include/ 15 16LOCAL_HEADER_LIBRARIES := display_headers 17LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync 18ifneq ($(TARGET_IS_HEADLESS), true) 19LOCAL_SHARED_LIBRARIES += libdrmutils 20endif 21LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -std=c++11 -Werror -Wno-sign-conversion 22LOCAL_CLANG := true 23LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) 24LOCAL_SRC_FILES := gr_utils.cpp \ 25 gr_ion_alloc.cpp \ 26 gr_adreno_info.cpp \ 27 gr_allocator.cpp \ 28 gr_buf_mgr.cpp \ 29 gr_device_impl.cpp 30LOCAL_COPY_HEADERS_TO := $(common_header_export_path) 31LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h 32include $(BUILD_SHARED_LIBRARY) 33