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 external/libcxx/include/ 14 15LOCAL_HEADER_LIBRARIES := display_headers 16LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils 17LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -std=c++11 -Werror 18LOCAL_CFLAGS += -isystem $(kernel_includes) 19LOCAL_CLANG := true 20LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) 21LOCAL_SRC_FILES := gr_ion_alloc.cpp \ 22 gr_allocator.cpp \ 23 gr_buf_mgr.cpp \ 24 gr_device_impl.cpp 25LOCAL_COPY_HEADERS_TO := $(common_header_export_path) 26LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h 27include $(BUILD_SHARED_LIBRARY) 28 29#libgrallocutils 30include $(CLEAR_VARS) 31LOCAL_MODULE := libgrallocutils 32LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 33LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 34LOCAL_VENDOR_MODULE := true 35LOCAL_MODULE_TAGS := optional 36LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 37LOCAL_HEADER_LIBRARIES := display_headers 38LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl 39LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"grallocutils\" -Wno-sign-conversion 40LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) 41LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp 42include $(BUILD_SHARED_LIBRARY) 43