Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 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) |
Naseer Ahmed | 9c7ab94 | 2017-02-22 18:28:25 -0500 | [diff] [blame] | 7 | |
| 8 | ifneq ($(TARGET_IS_HEADLESS), true) |
| 9 | LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib |
| 10 | LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 |
| 11 | endif |
| 12 | |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 13 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 14 | LOCAL_MODULE_TAGS := optional |
| 15 | LOCAL_C_INCLUDES := $(common_includes) \ |
| 16 | external/libcxx/include/ |
| 17 | |
Naseer Ahmed | 4d78d03 | 2017-03-22 12:47:30 -0400 | [diff] [blame] | 18 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | 7363397 | 2017-04-07 18:43:25 -0400 | [diff] [blame] | 19 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync |
Saurabh Shah | 7d476ed | 2016-06-27 16:40:58 -0700 | [diff] [blame] | 20 | ifneq ($(TARGET_IS_HEADLESS), true) |
| 21 | LOCAL_SHARED_LIBRARIES += libdrmutils |
| 22 | endif |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 23 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -std=c++11 -Werror |
| 24 | LOCAL_CFLAGS += -isystem $(kernel_includes) |
| 25 | LOCAL_CLANG := true |
| 26 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) |
| 27 | LOCAL_SRC_FILES := gr_utils.cpp \ |
| 28 | gr_ion_alloc.cpp \ |
| 29 | gr_adreno_info.cpp \ |
| 30 | gr_allocator.cpp \ |
| 31 | gr_buf_mgr.cpp \ |
| 32 | gr_device_impl.cpp |
| 33 | LOCAL_COPY_HEADERS_TO := $(common_header_export_path) |
| 34 | LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h |
| 35 | include $(BUILD_SHARED_LIBRARY) |