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