build: Allow to disable x11

By detecting whether libmutter was built with x11 or xwayland support
and disabling relavant code paths

Part-of:
<https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3362>
This commit is contained in:
Bilal Elmoussaoui 2024-06-26 14:40:04 +02:00
parent 19a37ed02a
commit 446bee5f1d
9 changed files with 120 additions and 41 deletions

View file

@ -39,3 +39,9 @@
/* Define to 1 if the <elf.h> and <link.h> header file exist. */
#mesondefine HAVE_EXE_INTROSPECTION
/* Whether GNOME Shell is built with X11 support */
#mesondefine HAVE_X11
/* Whether GNOME Shell is built with X11 clients support */
#mesondefine HAVE_X11_CLIENT