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