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 | 725789e | 2017-05-17 13:41:10 -0400 | [diff] [blame] | 7 | LOCAL_VENDOR_MODULE := true |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 8 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 9 | LOCAL_MODULE_TAGS := optional |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 10 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 11 | |
Naseer Ahmed | 4d78d03 | 2017-03-22 12:47:30 -0400 | [diff] [blame] | 12 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 13 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \ |
| 14 | libgralloccore \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 15 | android.hardware.graphics.mapper@2.0 \ |
| 16 | android.hardware.graphics.mapper@2.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 17 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 18 | LOCAL_CLANG := true |
| 19 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 20 | LOCAL_SRC_FILES := gr_device_impl.cpp |
Prabhanjan Kandula | 96e9234 | 2016-03-24 21:03:35 +0530 | [diff] [blame] | 21 | LOCAL_COPY_HEADERS_TO := $(common_header_export_path) |
| 22 | LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h |
| 23 | include $(BUILD_SHARED_LIBRARY) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 24 | |
| 25 | #libgrallocutils |
| 26 | include $(CLEAR_VARS) |
| 27 | LOCAL_MODULE := libgrallocutils |
Naseer Ahmed | 725789e | 2017-05-17 13:41:10 -0400 | [diff] [blame] | 28 | LOCAL_VENDOR_MODULE := true |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 29 | LOCAL_MODULE_TAGS := optional |
| 30 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 31 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 32 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 33 | android.hardware.graphics.mapper@2.0 \ |
| 34 | android.hardware.graphics.mapper@2.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 35 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion |
| 36 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 37 | LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp |
| 38 | include $(BUILD_SHARED_LIBRARY) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 39 | |
| 40 | #libgralloccore |
| 41 | include $(CLEAR_VARS) |
| 42 | LOCAL_MODULE := libgralloccore |
| 43 | LOCAL_VENDOR_MODULE := true |
| 44 | LOCAL_MODULE_TAGS := optional |
| 45 | LOCAL_C_INCLUDES := $(common_includes) \ |
| 46 | system/core/libion/include \ |
| 47 | system/core/libion/kernel-headers \ |
| 48 | $(kernel_includes) |
| 49 | |
| 50 | LOCAL_HEADER_LIBRARIES := display_headers |
| 51 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 52 | android.hardware.graphics.mapper@2.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 53 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion |
| 54 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) |
| 55 | LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp |
| 56 | include $(BUILD_SHARED_LIBRARY) |
| 57 | |
| 58 | |
| 59 | qti_mapper_version := $(shell \ |
| 60 | if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.0" ];\ |
| 61 | then echo QTI_MAPPER_1_0; fi) |
| 62 | |
| 63 | qti_allocator_version := $(shell \ |
| 64 | if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/allocator/1.0" ];\ |
| 65 | then echo QTI_ALLOCATOR_1_0; fi) |
| 66 | |
| 67 | |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 68 | #mapper |
| 69 | include $(CLEAR_VARS) |
| 70 | LOCAL_MODULE := android.hardware.graphics.mapper@2.0-impl-qti-display |
| 71 | LOCAL_VENDOR_MODULE := true |
| 72 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 73 | LOCAL_MODULE_TAGS := optional |
| 74 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 75 | LOCAL_HEADER_LIBRARIES := display_headers |
| 76 | LOCAL_SHARED_LIBRARIES := $(common_libs) \ |
| 77 | libhidlbase \ |
| 78 | libhidltransport \ |
| 79 | libqdMetaData \ |
| 80 | libgrallocutils \ |
| 81 | libgralloccore \ |
| 82 | libsync \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 83 | android.hardware.graphics.mapper@2.0 \ |
| 84 | android.hardware.graphics.mapper@2.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 85 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion |
| 86 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
| 87 | LOCAL_SRC_FILES := QtiMapper.cpp |
| 88 | include $(BUILD_SHARED_LIBRARY) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 89 | |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 90 | include $(CLEAR_VARS) |
| 91 | LOCAL_MODULE := vendor.qti.hardware.display.allocator@1.0-service |
| 92 | LOCAL_VENDOR_MODULE := true |
| 93 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 94 | LOCAL_MODULE_TAGS := optional |
| 95 | LOCAL_HEADER_LIBRARIES := display_headers |
| 96 | LOCAL_SHARED_LIBRARIES := $(common_libs) \ |
| 97 | libhidlbase \ |
| 98 | libhidltransport\ |
| 99 | libqdMetaData \ |
| 100 | libgrallocutils \ |
| 101 | libgralloccore \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 102 | android.hardware.graphics.mapper@2.1 \ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 103 | android.hardware.graphics.allocator@2.0 |
| 104 | LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags) |
| 105 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
| 106 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 107 | LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp |
| 108 | LOCAL_INIT_RC := vendor.qti.hardware.display.allocator@1.0-service.rc |
| 109 | include $(BUILD_EXECUTABLE) |