blob: 57fee80fe2545037eeacf8c59ec598447564dc1c [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 \
Yichi Chena8304132020-03-23 12:23:48 +080035 android.hardware.graphics.common@1.2 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050036 android.hardware.graphics.mapper@2.0 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040037 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050038 android.hardware.graphics.mapper@3.0 \
39 android.hardware.graphics.mapper@4.0
40LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
41 -D__QTI_DISPLAY_GRALLOC__
LuK13377d2a0b42019-09-23 21:41:37 +020042
43ifeq ($(TARGET_USES_YCRCB_CAMERA_PREVIEW),true)
44 LOCAL_CFLAGS += -DUSE_YCRCB_CAMERA_PREVIEW
SGCMarkusfb7aa912019-10-03 16:55:58 +020045else ifeq ($(TARGET_USES_YCRCB_VENUS_CAMERA_PREVIEW),true)
46 LOCAL_CFLAGS += -DUSE_YCRCB_CAMERA_PREVIEW_VENUS
LuK13377d2a0b42019-09-23 21:41:37 +020047endif
48
LuK1337ef92a142019-10-16 14:50:14 +020049ifeq ($(TARGET_USES_UNALIGNED_NV21_ZSL),true)
50 LOCAL_CFLAGS += -DUSE_UNALIGNED_NV21_ZSL
51endif
Willi Ye1f5c6502019-10-24 23:05:04 +020052ifeq ($(TARGET_USES_UNALIGNED_YCRCB),true)
53 LOCAL_CFLAGS += -DUSE_UNALIGNED_YCRCB
54endif
LuK1337ef92a142019-10-16 14:50:14 +020055
Naseer Ahmede36f2242017-12-01 15:33:56 -050056LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070057LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp
58include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050059
60#libgralloccore
61include $(CLEAR_VARS)
62LOCAL_MODULE := libgralloccore
63LOCAL_VENDOR_MODULE := true
64LOCAL_MODULE_TAGS := optional
65LOCAL_C_INCLUDES := $(common_includes) \
Ramakant Singha701e662020-02-18 10:22:46 +053066 $(LIBION_HEADER_PATHS) \
Naseer Ahmede36f2242017-12-01 15:33:56 -050067 $(kernel_includes)
68
69LOCAL_HEADER_LIBRARIES := display_headers
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050070LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion libgralloctypes \
71 libgralloc.qti libhidlbase \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040072 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -050073 android.hardware.graphics.mapper@3.0 \
74 android.hardware.graphics.mapper@4.0
75LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
76 -D__QTI_DISPLAY_GRALLOC__
Xiaowen Wu139436c2019-11-22 17:06:30 -050077ifeq ($(ENABLE_HYP),true)
78LOCAL_CFLAGS += -DHYPERVISOR
79endif
Tharaga Balachandranb3d66dc2020-03-11 12:52:17 -040080
81ifneq ($(TARGET_USES_GRALLOC4),false)
82LOCAL_CFLAGS += -DTARGET_USES_GRALLOC4
83endif
Isaac J. Manjarres857a4992019-04-22 17:18:05 -070084LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Naseer Ahmede36f2242017-12-01 15:33:56 -050085LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
86include $(BUILD_SHARED_LIBRARY)
87
Naseer Ahmede36f2242017-12-01 15:33:56 -050088#mapper
89include $(CLEAR_VARS)
Tharaga Balachandranab150ab2019-09-26 19:17:58 -040090LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-qti-display
Naseer Ahmede36f2242017-12-01 15:33:56 -050091LOCAL_VENDOR_MODULE := true
92LOCAL_MODULE_RELATIVE_PATH := hw
93LOCAL_MODULE_TAGS := optional
94LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
95LOCAL_HEADER_LIBRARIES := display_headers
96LOCAL_SHARED_LIBRARIES := $(common_libs) \
97 libhidlbase \
Naseer Ahmede36f2242017-12-01 15:33:56 -050098 libqdMetaData \
99 libgrallocutils \
100 libgralloccore \
101 libsync \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -0400102 vendor.qti.hardware.display.mapper@3.0 \
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400103 vendor.qti.hardware.display.mapperextensions@1.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -0500104 android.hardware.graphics.mapper@2.0 \
Ashish Kumar25435772019-08-06 16:15:56 +0530105 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -0400106 vendor.qti.hardware.display.mapperextensions@1.1 \
107 android.hardware.graphics.mapper@3.0
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500108LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
109 -D__QTI_DISPLAY_GRALLOC__
Naseer Ahmede36f2242017-12-01 15:33:56 -0500110LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400111LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp
Tharaga Balachandran0af48892019-08-08 18:04:34 -0400112LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml
Naseer Ahmede36f2242017-12-01 15:33:56 -0500113include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -0500114
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500115ifneq ($(TARGET_USES_GRALLOC4),false)
116include $(CLEAR_VARS)
117LOCAL_MODULE := android.hardware.graphics.mapper@4.0-impl-qti-display
118LOCAL_SANITIZE := integer_overflow
119LOCAL_VENDOR_MODULE := true
120LOCAL_MODULE_RELATIVE_PATH := hw
121LOCAL_MODULE_TAGS := optional
122LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
123LOCAL_HEADER_LIBRARIES := display_headers
124LOCAL_SHARED_LIBRARIES := $(common_libs) \
125 libhidlbase \
126 libhidltransport \
127 libqdMetaData \
128 libgrallocutils \
129 libgralloccore \
130 libsync \
131 libgralloctypes \
132 vendor.qti.hardware.display.mapper@4.0 \
133 vendor.qti.hardware.display.mapperextensions@1.0 \
134 android.hardware.graphics.mapper@2.0 \
135 android.hardware.graphics.mapper@2.1 \
136 vendor.qti.hardware.display.mapperextensions@1.1 \
137 android.hardware.graphics.mapper@3.0 \
138 android.hardware.graphics.mapper@4.0
139LOCAL_CFLAGS := $(common_flags) $(qmaa_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion \
140 -D__QTI_DISPLAY_GRALLOC__
141LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
142LOCAL_SRC_FILES := QtiMapper4.cpp QtiMapperExtensions.cpp
143LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml
144include $(BUILD_SHARED_LIBRARY)
145endif
146
Ashish Kumarf04c3de2018-08-01 14:45:14 +0530147#allocator
Naseer Ahmede36f2242017-12-01 15:33:56 -0500148include $(CLEAR_VARS)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400149LOCAL_MODULE := vendor.qti.hardware.display.allocator-service
Naseer Ahmede36f2242017-12-01 15:33:56 -0500150LOCAL_VENDOR_MODULE := true
151LOCAL_MODULE_RELATIVE_PATH := hw
152LOCAL_MODULE_TAGS := optional
153LOCAL_HEADER_LIBRARIES := display_headers
154LOCAL_SHARED_LIBRARIES := $(common_libs) \
155 libhidlbase \
Naseer Ahmede36f2242017-12-01 15:33:56 -0500156 libqdMetaData \
157 libgrallocutils \
158 libgralloccore \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500159 libgralloctypes \
160 vendor.qti.hardware.display.allocator@4.0 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -0400161 vendor.qti.hardware.display.allocator@3.0 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500162 vendor.qti.hardware.display.mapper@4.0 \
163 vendor.qti.hardware.display.mapper@3.0 \
164 android.hardware.graphics.mapper@4.0 \
Tharaga Balachandranab150ab2019-09-26 19:17:58 -0400165 android.hardware.graphics.mapper@3.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -0500166 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500167 android.hardware.graphics.allocator@4.0 \
168 android.hardware.graphics.allocator@3.0 \
169 vendor.qti.hardware.display.mapperextensions@1.0 \
170 vendor.qti.hardware.display.mapperextensions@1.1
Naseer Ahmede36f2242017-12-01 15:33:56 -0500171LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags)
Tharaga Balachandran74ab1112020-01-08 17:17:56 -0500172ifneq ($(TARGET_USES_GRALLOC4),false)
173LOCAL_CFLAGS += -DTARGET_USES_GRALLOC4
174endif
Naseer Ahmede36f2242017-12-01 15:33:56 -0500175LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
176LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
177LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400178LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc
Tharaga Balachandran0af48892019-08-08 18:04:34 -0400179LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml
Naseer Ahmede36f2242017-12-01 15:33:56 -0500180include $(BUILD_EXECUTABLE)