blob: 400b24553544f5eea3f3ca7d40e1d4f604c5a2db [file] [log] [blame]
Prabhanjan Kandula96e92342016-03-24 21:03:35 +05301# Gralloc module
2LOCAL_PATH := $(call my-dir)
3include $(LOCAL_PATH)/../common.mk
4include $(CLEAR_VARS)
5
Naseer Ahmed4f95fff2019-01-17 19:26:37 -05006LOCAL_MODULE := gralloc.qcom
Naseer Ahmed725789e2017-05-17 13:41:10 -04007LOCAL_VENDOR_MODULE := true
Prabhanjan Kandula96e92342016-03-24 21:03:35 +05308LOCAL_MODULE_RELATIVE_PATH := hw
9LOCAL_MODULE_TAGS := optional
Naseer Ahmede36f2242017-12-01 15:33:56 -050010LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053011
Naseer Ahmed4d78d032017-03-22 12:47:30 -040012LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmede36f2242017-12-01 15:33:56 -050013LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \
14 libgralloccore \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050015 android.hardware.graphics.mapper@2.0 \
16 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050017LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053018LOCAL_CLANG := true
19LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps)
Naseer Ahmede36f2242017-12-01 15:33:56 -050020LOCAL_SRC_FILES := gr_device_impl.cpp
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053021include $(BUILD_SHARED_LIBRARY)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070022
23#libgrallocutils
24include $(CLEAR_VARS)
25LOCAL_MODULE := libgrallocutils
Naseer Ahmed725789e2017-05-17 13:41:10 -040026LOCAL_VENDOR_MODULE := true
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070027LOCAL_MODULE_TAGS := optional
28LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
29LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmede36f2242017-12-01 15:33:56 -050030LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050031 android.hardware.graphics.mapper@2.0 \
32 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050033LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
34LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070035LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp
36include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050037
38#libgralloccore
39include $(CLEAR_VARS)
40LOCAL_MODULE := libgralloccore
41LOCAL_VENDOR_MODULE := true
42LOCAL_MODULE_TAGS := optional
43LOCAL_C_INCLUDES := $(common_includes) \
44 system/core/libion/include \
45 system/core/libion/kernel-headers \
46 $(kernel_includes)
47
48LOCAL_HEADER_LIBRARIES := display_headers
49LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050050 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050051LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
52LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps)
53LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
54include $(BUILD_SHARED_LIBRARY)
55
56
57qti_mapper_version := $(shell \
58 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.0" ];\
59 then echo QTI_MAPPER_1_0; fi)
60
61qti_allocator_version := $(shell \
62 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/allocator/1.0" ];\
63 then echo QTI_ALLOCATOR_1_0; fi)
64
Ashish Kumarf04c3de2018-08-01 14:45:14 +053065ifeq ($(qti_mapper_version), QTI_MAPPER_1_0)
Naseer Ahmede36f2242017-12-01 15:33:56 -050066#mapper
67include $(CLEAR_VARS)
68LOCAL_MODULE := android.hardware.graphics.mapper@2.0-impl-qti-display
69LOCAL_VENDOR_MODULE := true
70LOCAL_MODULE_RELATIVE_PATH := hw
71LOCAL_MODULE_TAGS := optional
72LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
73LOCAL_HEADER_LIBRARIES := display_headers
74LOCAL_SHARED_LIBRARIES := $(common_libs) \
75 libhidlbase \
76 libhidltransport \
77 libqdMetaData \
78 libgrallocutils \
79 libgralloccore \
80 libsync \
Ashish Kumarf04c3de2018-08-01 14:45:14 +053081 vendor.qti.hardware.display.mapper@1.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050082 android.hardware.graphics.mapper@2.0 \
83 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050084LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
85LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
86LOCAL_SRC_FILES := QtiMapper.cpp
87include $(BUILD_SHARED_LIBRARY)
Ashish Kumarf04c3de2018-08-01 14:45:14 +053088endif
Naseer Ahmede36f2242017-12-01 15:33:56 -050089
Ashish Kumarf04c3de2018-08-01 14:45:14 +053090ifeq ($(qti_allocator_version), QTI_ALLOCATOR_1_0)
91#allocator
Naseer Ahmede36f2242017-12-01 15:33:56 -050092include $(CLEAR_VARS)
93LOCAL_MODULE := vendor.qti.hardware.display.allocator@1.0-service
94LOCAL_VENDOR_MODULE := true
95LOCAL_MODULE_RELATIVE_PATH := hw
96LOCAL_MODULE_TAGS := optional
97LOCAL_HEADER_LIBRARIES := display_headers
98LOCAL_SHARED_LIBRARIES := $(common_libs) \
99 libhidlbase \
100 libhidltransport\
101 libqdMetaData \
102 libgrallocutils \
103 libgralloccore \
Ashish Kumarf04c3de2018-08-01 14:45:14 +0530104 vendor.qti.hardware.display.allocator@1.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -0500105 android.hardware.graphics.mapper@2.1 \
Naseer Ahmede36f2242017-12-01 15:33:56 -0500106 android.hardware.graphics.allocator@2.0
107LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags)
108LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
109LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
110LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp
111LOCAL_INIT_RC := vendor.qti.hardware.display.allocator@1.0-service.rc
112include $(BUILD_EXECUTABLE)
Ashish Kumarf04c3de2018-08-01 14:45:14 +0530113endif