mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
autotools/meson: compile against wayland-egl-*backend*
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=106861
Fixes: 1db4ec0546 "egl: rewire the build systems to use libwayland-egl"
Suggested-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Andreas Hartmetz <ahartmetz@gmail.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
cb03803253
commit
37eb56d239
3 changed files with 6 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ LIBOMXIL_TIZONIA_REQUIRED=0.10.0
|
|||
LIBVA_REQUIRED=0.39.0
|
||||
VDPAU_REQUIRED=1.1
|
||||
WAYLAND_REQUIRED=1.11
|
||||
WAYLAND_EGL_REQUIRED=1.15
|
||||
WAYLAND_EGL_BACKEND_REQUIRED=3
|
||||
WAYLAND_PROTOCOLS_REQUIRED=1.8
|
||||
XCB_REQUIRED=1.9.3
|
||||
XCBDRI2_REQUIRED=1.8
|
||||
|
|
@ -1810,7 +1810,7 @@ for plat in $platforms; do
|
|||
PKG_CHECK_MODULES([WAYLAND_SERVER], [wayland-server >= $WAYLAND_REQUIRED])
|
||||
PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= $WAYLAND_PROTOCOLS_REQUIRED])
|
||||
if test "x$enable_egl" = xyes; then
|
||||
PKG_CHECK_MODULES([WAYLAND_EGL], [wayland-egl >= $WAYLAND_EGL_REQUIRED])
|
||||
PKG_CHECK_MODULES([WAYLAND_EGL], [wayland-egl-backend >= $WAYLAND_EGL_BACKEND_REQUIRED])
|
||||
fi
|
||||
WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
|
||||
|
||||
|
|
|
|||
|
|
@ -1220,7 +1220,9 @@ if with_platform_wayland
|
|||
dep_wayland_client = dependency('wayland-client', version : '>=1.11')
|
||||
dep_wayland_server = dependency('wayland-server', version : '>=1.11')
|
||||
if with_egl
|
||||
dep_wayland_egl = dependency('wayland-egl', version : '>=1.15')
|
||||
dep_wayland_egl = dependency('wayland-egl-backend', version : '>= 3')
|
||||
dep_wayland_egl_headers = declare_dependency(
|
||||
compile_args : run_command(prog_pkgconfig, ['wayland-egl-backend', '--cflags']).stdout().split())
|
||||
endif
|
||||
wayland_dmabuf_xml = join_paths(
|
||||
dep_wl_protocols.get_pkgconfig_variable('pkgdatadir'), 'unstable',
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ if with_platform_surfaceless
|
|||
files_egl += files('drivers/dri2/platform_surfaceless.c')
|
||||
endif
|
||||
if with_platform_wayland
|
||||
deps_for_egl += [dep_wayland_client, dep_wayland_server, dep_wayland_egl]
|
||||
deps_for_egl += [dep_wayland_client, dep_wayland_server, dep_wayland_egl_headers]
|
||||
link_for_egl += libwayland_drm
|
||||
files_egl += files('drivers/dri2/platform_wayland.c')
|
||||
files_egl += [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue