[mutter] clutter: Add back support for non-wayland builds
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Add back support for non-wayland builds
- Date: Fri, 29 Apr 2016 14:48:49 +0000 (UTC)
commit 3856622ff7822e3a5bed9e2bc17c69f4f2a8278e
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Apr 28 22:50:17 2016 +0200
clutter: Add back support for non-wayland builds
Wayland support is only available on Linux, so keep it optional for
now.
https://bugzilla.gnome.org/show_bug.cgi?id=760439
clutter/clutter/Makefile.am | 2 ++
clutter/configure.ac | 40 +++++++++++++++++++++++++++-------------
2 files changed, 29 insertions(+), 13 deletions(-)
---
diff --git a/clutter/clutter/Makefile.am b/clutter/clutter/Makefile.am
index 599ec58..d8edb12 100644
--- a/clutter/clutter/Makefile.am
+++ b/clutter/clutter/Makefile.am
@@ -466,6 +466,7 @@ evdev_h_priv = \
$(NULL)
evdev_h = evdev/clutter-evdev.h
+if SUPPORT_WAYLAND
backend_source_c_priv += $(evdev_c_priv)
backend_source_h_priv += $(evdev_h_priv)
backend_source_h += $(evdev_h)
@@ -501,6 +502,7 @@ backend_source_h_priv += $(egl_source_h_priv)
clutteregl_includedir = $(clutter_includedir)/egl
clutteregl_include_HEADERS = $(egl_source_h)
+endif # SUPPORT_WAYLAND
# cally
cally_sources_h = \
diff --git a/clutter/configure.ac b/clutter/configure.ac
index a9af0ea..e54b160 100644
--- a/clutter/configure.ac
+++ b/clutter/configure.ac
@@ -222,19 +222,33 @@ PKG_CHECK_EXISTS([pangoft2],
],
[])
-CLUTTER_BACKENDS="$CLUTTER_BACKENDS egl"
-SUPPORT_EGL=1
-AC_DEFINE([CLUTTER_EGL_BACKEND_GENERIC], [1], [Use Generic EGL backend])
+AC_ARG_ENABLE(
+ [wayland-egl-server],
+ [AC_HELP_STRING([--enable-wayland-egl-server=@<:@no/yes@:>@], [Enable server side wayland support
@<:@default=no@:>@])],
+ [],
+ enable_wayland_egl_server=yes
+)
-BACKEND_PC_FILES="$BACKEND_PC_FILES wayland-egl wayland-server libdrm gbm"
-SUPPORT_WAYLAND_COMPOSITOR=1
-CLUTTER_CONFIG_DEFINES="$CLUTTER_CONFIG_DEFINES
-#define CLUTTER_HAS_WAYLAND_COMPOSITOR_SUPPORT 1"
+AS_IF([test "x$enable_wayland_egl_server" = "xyes"],
+ [
+ CLUTTER_BACKENDS="$CLUTTER_BACKENDS egl"
+ SUPPORT_EGL=1
+ AC_DEFINE([CLUTTER_EGL_BACKEND_GENERIC], [1], [Use Generic EGL backend])
+
+ BACKEND_PC_FILES="$BACKEND_PC_FILES wayland-egl wayland-server libdrm gbm"
+
+ SUPPORT_WAYLAND_COMPOSITOR=1
+ CLUTTER_CONFIG_DEFINES="$CLUTTER_CONFIG_DEFINES
+ #define CLUTTER_HAS_WAYLAND_COMPOSITOR_SUPPORT 1"
+
+ CLUTTER_INPUT_BACKENDS="$CLUTTER_INPUT_BACKENDS evdev"
+
+ SUPPORT_EVDEV=1
+ BACKEND_PC_FILES_PRIVATE="$BACKEND_PC_FILES_PRIVATE libudev >= $LIBUDEV_REQ_VERSION libinput >=
$LIBINPUT_REQ_VERSION xkbcommon"
+ AC_DEFINE([HAVE_EVDEV], [1], [Have evdev support for input handling])
+ ])
-CLUTTER_INPUT_BACKENDS="$CLUTTER_INPUT_BACKENDS evdev"
-BACKEND_PC_FILES_PRIVATE="$BACKEND_PC_FILES_PRIVATE libudev >= $LIBUDEV_REQ_VERSION libinput >=
$LIBINPUT_REQ_VERSION xkbcommon"
-SUPPORT_EVDEV=1
-AC_DEFINE([HAVE_EVDEV], [1], [Have evdev support for input handling])
+AM_CONDITIONAL(SUPPORT_WAYLAND, [test "x$enable_wayland_egl_server" = "xyes"])
dnl Instead of using AM_CFLAGS to ensure
dnl COGL_ENABLE_EXPERIMENTAL_2_0_API is defined while compiling clutter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]