summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorRoman Stratiienko <r.stratiienko@gmail.com>2020-12-15 16:50:19 +0200
committerMarge Bot <eric+marge@anholt.net>2021-06-30 16:50:44 +0000
commitf85d3113b2b73b351fc50b2089447787c7f9a731 (patch)
tree3980cd6ef41019f6e8acced768a64c05f8cd037f /android
parent5d3e64f10548035aa29e90d44fead6ba048220d9 (diff)
egl: android: add IMapper@4 metadata API buffer_info getter
Starting from Android-11 Google introduces generalized API to access buffer information. This API is a part of IMapper@4 HAL. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6045>
Diffstat (limited to 'android')
-rw-r--r--android/Android.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/android/Android.mk b/android/Android.mk
index d5d2c68272f..243da8493af 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -78,6 +78,16 @@ MESON_LLVM_IRBUILDER_PATH := external/llvm-project/llvm/include/llvm/IR/IRBuilde
LOCAL_SHARED_LIBRARIES += libLLVM11
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 30; echo $$?), 0)
+LOCAL_SHARED_LIBRARIES += \
+ android.hardware.graphics.mapper@4.0 \
+ libgralloctypes \
+ libhidlbase \
+ libutils
+
+MESON_GEN_PKGCONFIGS += android.hardware.graphics.mapper:4.0
+endif
+
ifeq ($(TARGET_IS_64_BIT),true)
LOCAL_MULTILIB := 64
else