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 |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame^] | 19 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 20 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -std=c++11 -Werror |
| 21 | LOCAL_CFLAGS += -isystem $(kernel_includes) |
| 22 | LOCAL_CLANG := true |
| 23 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame^] | 24 | LOCAL_SRC_FILES := gr_ion_alloc.cpp \ |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 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) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame^] | 31 | |
| 32 | #libgrallocutils |
| 33 | include $(CLEAR_VARS) |
| 34 | LOCAL_MODULE := libgrallocutils |
| 35 | ifneq ($(TARGET_IS_HEADLESS), true) |
| 36 | LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib |
| 37 | LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 |
| 38 | endif |
| 39 | LOCAL_MODULE_TAGS := optional |
| 40 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 41 | LOCAL_HEADER_LIBRARIES := display_headers |
| 42 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdutils libqdMetaData libdl |
| 43 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"grallocutils\" -Wno-sign-conversion |
| 44 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) |
| 45 | LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp |
| 46 | include $(BUILD_SHARED_LIBRARY) |