mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
Android: Use libgbm_mesa name for SDK30+
libgbm.so name has been occupied in AOSP by minigbm starting from Android-11 (SDKv30). In AOSP's mesa3d fork, libgbm was renamed to libgbm_mesa. 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/18533>
This commit is contained in:
parent
28af93ace7
commit
62ef714ce4
@ -100,6 +100,12 @@ endif
|
||||
|
||||
__MY_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES)
|
||||
|
||||
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 30; echo $$?), 0)
|
||||
MESA_LIBGBM_NAME := libgbm_mesa
|
||||
else
|
||||
MESA_LIBGBM_NAME := libgbm
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_IS_64_BIT),true)
|
||||
LOCAL_MULTILIB := 64
|
||||
else
|
||||
@ -170,7 +176,7 @@ $(foreach driver,$(BOARD_MESA3D_VULKAN_DRIVERS), \
|
||||
|
||||
ifneq ($(filter true, $(BOARD_MESA3D_BUILD_LIBGBM)),)
|
||||
# Modules 'libgbm', produces '/vendor/lib{64}/libgbm.so'
|
||||
$(eval $(call mesa3d-lib,libgbm,.so.1,,MESA3D_LIBGBM_BIN,$(MESA3D_TOP)/src/gbm/main))
|
||||
$(eval $(call mesa3d-lib,$(MESA_LIBGBM_NAME),.so.1,,MESA3D_LIBGBM_BIN,$(MESA3D_TOP)/src/gbm/main))
|
||||
endif
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
@ -69,7 +69,7 @@ $(M_TARGET_PREFIX)MESA3D_LIBEGL_BIN := $(MESON_OUT_DIR)/install/usr/local/l
|
||||
$(M_TARGET_PREFIX)MESA3D_LIBGLESV1_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libGLESv1_CM.so.1.1.0
|
||||
$(M_TARGET_PREFIX)MESA3D_LIBGLESV2_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libGLESv2.so.2.0.0
|
||||
$(M_TARGET_PREFIX)MESA3D_LIBGLAPI_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libglapi.so.0.0.0
|
||||
$(M_TARGET_PREFIX)MESA3D_LIBGBM_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libgbm.so.1.0.0
|
||||
$(M_TARGET_PREFIX)MESA3D_LIBGBM_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/$(MESA_LIBGBM_NAME).so.1.0.0
|
||||
|
||||
|
||||
MESA3D_GLES_BINS := \
|
||||
|
@ -45,8 +45,14 @@ if with_platform_wayland
|
||||
incs_gbm += inc_wayland_drm
|
||||
endif
|
||||
|
||||
libgbm_name = 'gbm'
|
||||
|
||||
if with_platform_android and get_option('platform-sdk-version') >= 30
|
||||
libgbm_name = 'gbm_mesa'
|
||||
endif
|
||||
|
||||
libgbm = shared_library(
|
||||
'gbm',
|
||||
libgbm_name,
|
||||
files_gbm,
|
||||
include_directories : incs_gbm,
|
||||
c_args : [args_gbm],
|
||||
|
Loading…
Reference in New Issue
Block a user