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