From e83491d9b96c92f2edc6aa55fb30ae9d2f1e993b Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Fri, 6 May 2022 15:51:40 +0200 Subject: [PATCH] build: Add X11/XWayland config options Part-of: --- config.h.meson | 9 +++++++++ meson.build | 3 +++ 2 files changed, 12 insertions(+) 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)