blob: 04322c1bbadaefb438c30d0ea95be2432902dc5d [file] [log] [blame]
Prabhanjan Kandula96e92342016-03-24 21:03:35 +05301# Gralloc module
2LOCAL_PATH := $(call my-dir)
3include $(LOCAL_PATH)/../common.mk
Ramakant Singha701e662020-02-18 10:22:46 +05304include $(LIBION_HEADER_PATH_WRAPPER)
Prabhanjan Kandula96e92342016-03-24 21:03:35 +05305include $(CLEAR_VARS)
6
Naseer Ahmed755af6b2019-04-15 19:49:29 -04007LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
Naseer Ahmed725789e2017-05-17 13:41:10 -04008LOCAL_VENDOR_MODULE := true
Prabhanjan Kandula96e92342016-03-24 21:03:35 +05309LOCAL_MODULE_RELATIVE_PATH := hw
10LOCAL_MODULE_TAGS := optional
Naseer Ahmede36f2242017-12-01 15:33:56 -050011LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053012
Naseer Ahmed4d78d032017-03-22 12:47:30 -040013LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmede36f2242017-12-01 15:33:56 -050014LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \
15 libgralloccore \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050016 android.hardware.graphics.mapper@2.0 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040017 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050018 android.hardware.graphics.mapper@3.0 \
19 android.hardware.graphics.mapper@4.0
20LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror \
21 -D__QTI_DISPLAY_GRALLOC__
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053022LOCAL_CLANG := true
Isaac J. Manjarres857a4992019-04-22 17:18:05 -070023LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Naseer Ahmede36f2242017-12-01 15:33:56 -050024LOCAL_SRC_FILES := gr_device_impl.cpp
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053025include $(BUILD_SHARED_LIBRARY)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070026
27#libgrallocutils
28include $(CLEAR_VARS)
29LOCAL_MODULE := libgrallocutils
Naseer Ahmed725789e2017-05-17 13:41:10 -040030LOCAL_VENDOR_MODULE := true
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070031LOCAL_MODULE_TAGS := optional
32LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
33LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmede36f2242017-12-01 15:33:56 -050034LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050035 android.hardware.graphics.mapper@2.0 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040036 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050037 android.hardware.graphics.mapper@3.0 \
38 android.hardware.graphics.mapper@4.0
39LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
40 -D__QTI_DISPLAY_GRALLOC__
Naseer Ahmede36f2242017-12-01 15:33:56 -050041LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070042LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp
43include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050044
45#libgralloccore
46include $(CLEAR_VARS)
47LOCAL_MODULE := libgralloccore
48LOCAL_VENDOR_MODULE := true
49LOCAL_MODULE_TAGS := optional
50LOCAL_C_INCLUDES := $(common_includes) \
Ramakant Singha701e662020-02-18 10:22:46 +053051 $(LIBION_HEADER_PATHS) \
Naseer Ahmede36f2242017-12-01 15:33:56 -050052 $(kernel_includes)
53
54LOCAL_HEADER_LIBRARIES := display_headers
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050055LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion libgralloctypes \
56 libgralloc.qti libhidlbase \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040057 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050058 android.hardware.graphics.mapper@3.0 \
59 android.hardware.graphics.mapper@4.0
60LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
61 -D__QTI_DISPLAY_GRALLOC__
Xiaowen Wu139436c2019-11-22 17:06:30 -050062ifeq ($(ENABLE_HYP),true)
63LOCAL_CFLAGS += -DHYPERVISOR
64endif
Isaac J. Manjarres857a4992019-04-22 17:18:05 -070065LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Naseer Ahmede36f2242017-12-01 15:33:56 -050066LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
67include $(BUILD_SHARED_LIBRARY)
68
Naseer Ahmede36f2242017-12-01 15:33:56 -050069#mapper
70include $(CLEAR_VARS)
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040071LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-qti-display
Naseer Ahmede36f2242017-12-01 15:33:56 -050072LOCAL_VENDOR_MODULE := true
73LOCAL_MODULE_RELATIVE_PATH := hw
74LOCAL_MODULE_TAGS := optional
75LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
76LOCAL_HEADER_LIBRARIES := display_headers
77LOCAL_SHARED_LIBRARIES := $(common_libs) \
78 libhidlbase \
Naseer Ahmede36f2242017-12-01 15:33:56 -050079 libqdMetaData \
80 libgrallocutils \
81 libgralloccore \
82 libsync \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040083 vendor.qti.hardware.display.mapper@3.0 \
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -040084 vendor.qti.hardware.display.mapperextensions@1.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050085 android.hardware.graphics.mapper@2.0 \
Ashish Kumar25435772019-08-06 16:15:56 +053086 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040087 vendor.qti.hardware.display.mapperextensions@1.1 \
88 android.hardware.graphics.mapper@3.0
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050089LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
90 -D__QTI_DISPLAY_GRALLOC__
Naseer Ahmede36f2242017-12-01 15:33:56 -050091LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -040092LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp
Tharaga Balachandran0af48892019-08-08 18:04:34 -040093LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml
Naseer Ahmede36f2242017-12-01 15:33:56 -050094include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050095
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050096ifneq ($(TARGET_USES_GRALLOC4),false)
97include $(CLEAR_VARS)
98LOCAL_MODULE := android.hardware.graphics.mapper@4.0-impl-qti-display
99LOCAL_SANITIZE := integer_overflow
100LOCAL_VENDOR_MODULE := true
101LOCAL_MODULE_RELATIVE_PATH := hw
102LOCAL_MODULE_TAGS := optional
103LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
104LOCAL_HEADER_LIBRARIES := display_headers
105LOCAL_SHARED_LIBRARIES := $(common_libs) \
106 libhidlbase \
107 libhidltransport \
108 libqdMetaData \
109 libgrallocutils \
110 libgralloccore \
111 libsync \
112 libgralloctypes \
113 vendor.qti.hardware.display.mapper@4.0 \
114 vendor.qti.hardware.display.mapperextensions@1.0 \
115 android.hardware.graphics.mapper@2.0 \
116 android.hardware.graphics.mapper@2.1 \
117 vendor.qti.hardware.display.mapperextensions@1.1 \
118 android.hardware.graphics.mapper@3.0 \
119 android.hardware.graphics.mapper@4.0
120LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
121 -D__QTI_DISPLAY_GRALLOC__
122LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
123LOCAL_SRC_FILES := QtiMapper4.cpp QtiMapperExtensions.cpp
124LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml
125include $(BUILD_SHARED_LIBRARY)
126endif
127
Ashish Kumarf04c3de2018-08-01 14:45:14 +0530128#allocator
Naseer Ahmede36f2242017-12-01 15:33:56 -0500129include $(CLEAR_VARS)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400130LOCAL_MODULE := vendor.qti.hardware.display.allocator-service
Naseer Ahmede36f2242017-12-01 15:33:56 -0500131LOCAL_VENDOR_MODULE := true
132LOCAL_MODULE_RELATIVE_PATH := hw
133LOCAL_MODULE_TAGS := optional
134LOCAL_HEADER_LIBRARIES := display_headers
135LOCAL_SHARED_LIBRARIES := $(common_libs) \
136 libhidlbase \
Naseer Ahmede36f2242017-12-01 15:33:56 -0500137 libqdMetaData \
138 libgrallocutils \
139 libgralloccore \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500140 libgralloctypes \
141 vendor.qti.hardware.display.allocator@4.0 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -0400142 vendor.qti.hardware.display.allocator@3.0 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500143 vendor.qti.hardware.display.mapper@4.0 \
144 vendor.qti.hardware.display.mapper@3.0 \
145 android.hardware.graphics.mapper@4.0 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -0400146 android.hardware.graphics.mapper@3.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -0500147 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500148 android.hardware.graphics.allocator@4.0 \
149 android.hardware.graphics.allocator@3.0 \
150 vendor.qti.hardware.display.mapperextensions@1.0 \
151 vendor.qti.hardware.display.mapperextensions@1.1
Naseer Ahmede36f2242017-12-01 15:33:56 -0500152LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags)
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500153ifneq ($(TARGET_USES_GRALLOC4),false)
154LOCAL_CFLAGS += -DTARGET_USES_GRALLOC4
155endif
Naseer Ahmede36f2242017-12-01 15:33:56 -0500156LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
157LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
158LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400159LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc
Tharaga Balachandran0af48892019-08-08 18:04:34 -0400160LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml
Naseer Ahmede36f2242017-12-01 15:33:56 -0500161include $(BUILD_EXECUTABLE)