summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Elmoussaoui <belmouss@redhat.com>2022-05-06 15:51:40 +0200
committerBilal Elmoussaoui <belmouss@redhat.com>2022-05-25 16:42:04 +0200
commite83491d9b96c92f2edc6aa55fb30ae9d2f1e993b (patch)
treeee914f0cb132b7c68bdd9657d4afe0069e54ce7a
parent98f0b20e03206c8404138e31b494edde0ec250d3 (diff)
downloadmutter-e83491d9b96c92f2edc6aa55fb30ae9d2f1e993b.tar.gz
build: Add X11/XWayland config options
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2354>
-rw-r--r--config.h.meson9
-rw-r--r--meson.build3
2 files changed, 12 insertions, 0 deletions
diff --git a/config.h.meson b/config.h.meson
index 9119ad864..a977540d4 100644
--- a/config.h.meson
+++ b/config.h.meson
@@ -43,6 +43,15 @@
/* Define if you want to enable Wayland support */
#mesondefine HAVE_WAYLAND
+/* Define if you want to enable XWayland support */
+#mesondefine HAVE_XWAYLAND
+
+/* Define if you want to enable X11 backend support */
+#mesondefine HAVE_X11
+
+/* Define if either XWayland or X11 backend are enabled */
+#mesondefine HAVE_X11_CLIENT
+
/* Defined if screen cast and remote desktop support is enabled */
#mesondefine HAVE_REMOTE_DESKTOP
diff --git a/meson.build b/meson.build
index 2bb71cc11..49e66e717 100644
--- a/meson.build
+++ b/meson.build
@@ -472,6 +472,9 @@ cdata.set_quoted('PACKAGE_VERSION', meson.project_version())
cdata.set('HAVE_EGL', have_egl)
cdata.set('HAVE_WAYLAND', have_wayland)
+cdata.set('HAVE_XWAYLAND', have_xwayland)
+cdata.set('HAVE_X11', have_x11)
+cdata.set('HAVE_X11_CLIENT', have_x11_client)
cdata.set('HAVE_LIBSYSTEMD', have_libsystemd)
cdata.set('HAVE_NATIVE_BACKEND', have_native_backend)
cdata.set('HAVE_REMOTE_DESKTOP', have_remote_desktop)