mirror of https://github.com/snes9xgit/snes9x.git
GTK+: Make Wayland support removable.
This commit is contained in:
parent
ffdf886a0a
commit
33d1840877
|
@ -153,6 +153,12 @@ AC_ARG_WITH(gtk3,
|
|||
[],
|
||||
[with_gtk3=yes])
|
||||
|
||||
AC_ARG_WITH(wayland,
|
||||
[AS_HELP_STRING([--with(out)-wayland],
|
||||
[Build with Wayland support if available (default: with)])],
|
||||
[],
|
||||
[with_wayland=yes])
|
||||
|
||||
AC_ARG_WITH(gtk2,
|
||||
[AS_HELP_STRING([--with(out)-gtk2],
|
||||
[Build with GTK+ 3 if available (default: without)])],
|
||||
|
@ -224,17 +230,19 @@ if test yes = "$with_opengl" ; then
|
|||
fi
|
||||
|
||||
WAYLAND=0
|
||||
PKG_CHECK_MODULES([WAYLAND_EGL],[wayland-egl],[
|
||||
if test yes = "$with_wayland"; then
|
||||
PKG_CHECK_MODULES([WAYLAND_EGL],[wayland-egl],[
|
||||
if test yes = "$GTK3_WARNING" ; then
|
||||
CFLAGS="$CFLAGS $WAYLAND_EGL_CFLAGS"
|
||||
CFLAGS="$CFLAGS -DUSE_WAYLAND $WAYLAND_EGL_CFLAGS"
|
||||
LIBS="$LIBS $WAYLAND_EGL_LIBS"
|
||||
WAYLAND=yes
|
||||
else
|
||||
echo "Found Wayland, but need GTK3 for support."
|
||||
fi
|
||||
],[
|
||||
],[
|
||||
echo "Not using Wayland-EGL."
|
||||
])
|
||||
])
|
||||
fi
|
||||
|
||||
GTKJOY=0
|
||||
SDL_CFLAGS=""
|
||||
|
@ -522,6 +530,10 @@ else
|
|||
echo " GTK+ 2.0"
|
||||
fi
|
||||
|
||||
if test yes = "$WAYLAND" ; then
|
||||
echo " Wayland"
|
||||
fi
|
||||
|
||||
if test yes = "$ALSA" ; then
|
||||
echo " ALSA"
|
||||
fi
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
|
||||
#include <gdk/gdkkeysyms-compat.h>
|
||||
|
||||
#ifndef USE_WAYLAND
|
||||
#undef GDK_WINDOWING_WAYLAND
|
||||
#endif
|
||||
|
||||
#ifdef GDK_WINDOWING_WAYLAND
|
||||
#include <gdk/gdkwayland.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue