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 | |
Naseer Ahmed | 755af6b | 2019-04-15 19:49:29 -0400 | [diff] [blame] | 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 |
Isaac J. Manjarres | 857a499 | 2019-04-22 17:18:05 -0700 | [diff] [blame^] | 19 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_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 | include $(BUILD_SHARED_LIBRARY) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 22 | |
| 23 | #libgrallocutils |
| 24 | include $(CLEAR_VARS) |
| 25 | LOCAL_MODULE := libgrallocutils |
Naseer Ahmed | 725789e | 2017-05-17 13:41:10 -0400 | [diff] [blame] | 26 | LOCAL_VENDOR_MODULE := true |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 27 | LOCAL_MODULE_TAGS := optional |
| 28 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 29 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 30 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 31 | android.hardware.graphics.mapper@2.0 \ |
| 32 | android.hardware.graphics.mapper@2.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 33 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion |
| 34 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
Saurabh Shah | 14c8e5b | 2017-04-07 10:37:23 -0700 | [diff] [blame] | 35 | LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp |
| 36 | include $(BUILD_SHARED_LIBRARY) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 37 | |
| 38 | #libgralloccore |
| 39 | include $(CLEAR_VARS) |
| 40 | LOCAL_MODULE := libgralloccore |
| 41 | LOCAL_VENDOR_MODULE := true |
| 42 | LOCAL_MODULE_TAGS := optional |
| 43 | LOCAL_C_INCLUDES := $(common_includes) \ |
| 44 | system/core/libion/include \ |
| 45 | system/core/libion/kernel-headers \ |
| 46 | $(kernel_includes) |
| 47 | |
| 48 | LOCAL_HEADER_LIBRARIES := display_headers |
| 49 | LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 50 | android.hardware.graphics.mapper@2.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 51 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion |
Isaac J. Manjarres | 857a499 | 2019-04-22 17:18:05 -0700 | [diff] [blame^] | 52 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 53 | LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp |
| 54 | include $(BUILD_SHARED_LIBRARY) |
| 55 | |
Ashish Kumar | 28fa16f | 2019-02-22 05:24:02 +0530 | [diff] [blame] | 56 | #Get the display mapper version available |
| 57 | qti_mapper1_1_version := $(shell \ |
| 58 | if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.1" ];\ |
| 59 | then echo QTI_MAPPER_1_1; fi) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 60 | |
| 61 | qti_mapper_version := $(shell \ |
| 62 | if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.0" ];\ |
| 63 | then echo QTI_MAPPER_1_0; fi) |
| 64 | |
| 65 | qti_allocator_version := $(shell \ |
| 66 | if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/allocator/1.0" ];\ |
| 67 | then echo QTI_ALLOCATOR_1_0; fi) |
| 68 | |
Ashish Kumar | f04c3de | 2018-08-01 14:45:14 +0530 | [diff] [blame] | 69 | ifeq ($(qti_mapper_version), QTI_MAPPER_1_0) |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 70 | #mapper |
| 71 | include $(CLEAR_VARS) |
| 72 | LOCAL_MODULE := android.hardware.graphics.mapper@2.0-impl-qti-display |
| 73 | LOCAL_VENDOR_MODULE := true |
| 74 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 75 | LOCAL_MODULE_TAGS := optional |
| 76 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 77 | LOCAL_HEADER_LIBRARIES := display_headers |
| 78 | LOCAL_SHARED_LIBRARIES := $(common_libs) \ |
| 79 | libhidlbase \ |
| 80 | libhidltransport \ |
| 81 | libqdMetaData \ |
| 82 | libgrallocutils \ |
| 83 | libgralloccore \ |
| 84 | libsync \ |
Ashish Kumar | f04c3de | 2018-08-01 14:45:14 +0530 | [diff] [blame] | 85 | vendor.qti.hardware.display.mapper@1.0 \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 86 | android.hardware.graphics.mapper@2.0 \ |
| 87 | android.hardware.graphics.mapper@2.1 |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 88 | LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion |
Ashish Kumar | 28fa16f | 2019-02-22 05:24:02 +0530 | [diff] [blame] | 89 | ifeq ($(qti_mapper1_1_version), QTI_MAPPER_1_1) |
| 90 | LOCAL_SHARED_LIBRARIES += vendor.qti.hardware.display.mapper@1.1 |
| 91 | LOCAL_CFLAGS += -DQTI_MAPPER_1_1 |
| 92 | endif |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 93 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
| 94 | LOCAL_SRC_FILES := QtiMapper.cpp |
| 95 | include $(BUILD_SHARED_LIBRARY) |
Ashish Kumar | f04c3de | 2018-08-01 14:45:14 +0530 | [diff] [blame] | 96 | endif |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 97 | |
Ashish Kumar | f04c3de | 2018-08-01 14:45:14 +0530 | [diff] [blame] | 98 | ifeq ($(qti_allocator_version), QTI_ALLOCATOR_1_0) |
| 99 | #allocator |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 100 | include $(CLEAR_VARS) |
| 101 | LOCAL_MODULE := vendor.qti.hardware.display.allocator@1.0-service |
| 102 | LOCAL_VENDOR_MODULE := true |
| 103 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 104 | LOCAL_MODULE_TAGS := optional |
| 105 | LOCAL_HEADER_LIBRARIES := display_headers |
| 106 | LOCAL_SHARED_LIBRARIES := $(common_libs) \ |
| 107 | libhidlbase \ |
| 108 | libhidltransport\ |
| 109 | libqdMetaData \ |
| 110 | libgrallocutils \ |
| 111 | libgralloccore \ |
Ashish Kumar | f04c3de | 2018-08-01 14:45:14 +0530 | [diff] [blame] | 112 | vendor.qti.hardware.display.allocator@1.0 \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 113 | android.hardware.graphics.mapper@2.1 \ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 114 | android.hardware.graphics.allocator@2.0 |
| 115 | LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags) |
| 116 | LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) |
| 117 | LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) |
| 118 | LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp |
| 119 | LOCAL_INIT_RC := vendor.qti.hardware.display.allocator@1.0-service.rc |
| 120 | include $(BUILD_EXECUTABLE) |
Ashish Kumar | f04c3de | 2018-08-01 14:45:14 +0530 | [diff] [blame] | 121 | endif |