1 # Gralloc module 2 LOCAL_PATH := $(call my-dir) 3 include $(LOCAL_PATH)/../common.mk 4 include $(CLEAR_VARS) 5 6 LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM) 7 LOCAL_VENDOR_MODULE := true 8 LOCAL_MODULE_RELATIVE_PATH := hw 9 LOCAL_MODULE_TAGS := optional 10 LOCAL_C_INCLUDES := $(common_includes) \ 11 $(kernel_includes) \ 12 external/libcxx/include/ 13 14 LOCAL_HEADER_LIBRARIES := display_headers 15 LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync 16 ifneq ($(TARGET_IS_HEADLESS), true) 17 LOCAL_SHARED_LIBRARIES += libdrmutils 18 endif 19 LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -std=c++11 -Werror -Wno-sign-conversion 20 LOCAL_CLANG := true 21 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) 22 LOCAL_SRC_FILES := gr_utils.cpp \ 23 gr_ion_alloc.cpp \ 24 gr_adreno_info.cpp \ 25 gr_allocator.cpp \ 26 gr_buf_mgr.cpp \ 27 gr_device_impl.cpp 28 LOCAL_COPY_HEADERS_TO := $(common_header_export_path) 29 LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h 30 include $(BUILD_SHARED_LIBRARY) 31