Skip to content

Commit

Permalink
gbm_gralloc: Add mesa libgbm to shared lib based on platform sdk version
Browse files Browse the repository at this point in the history
- From Android 11, the mesa libgbm module renamed to libgbm_mesa to avoid conflict with minigbm.
  So Handle it correctly based on Platform SDK version.

[0] - https://android.googlesource.com/platform/external/mesa3d/+/7036b3872f7853dc732fb557dcd9b4ca31887fd6%5E%21

Signed-off-by: Dhina17 <dhinalogu@gmail.com>
Change-Id: I1d86f508a7729c8279d79a18666fb080be34745b
  • Loading branch information
Dhina17 authored and robherring committed Sep 12, 2022
1 parent 60f0d50 commit 6b742ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@ LOCAL_SRC_FILES := \

LOCAL_SHARED_LIBRARIES := \
libdrm \
libgbm \
liblog \
libcutils \
libhardware \

ifeq ($(shell expr $(PLATFORM_SDK_VERSION) \>= 30), 1)
LOCAL_SHARED_LIBRARIES += \
libgbm_mesa
else
LOCAL_SHARED_LIBRARIES += \
libgbm
endif

LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH)

Expand Down

0 comments on commit 6b742ba

Please sign in to comment.