aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-01-27 16:26:36 +0100
committerSimon Ser <contact@emersion.fr>2023-05-04 18:02:32 +0000
commit2827ec6b7b4ba45d3911258cd7a383eccd722c28 (patch)
treea0954a803e08b78d96beb23d58f6266794d4780c
parent403eac51c4b43fc6a78d3c301ca5d3a09284ded0 (diff)
xwayland: enable use of a xserver subproject
Makes it easier to work on Xwayland and wlroots features in parallel. References: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1048
-rw-r--r--xwayland/meson.build14
1 files changed, 13 insertions, 1 deletions
diff --git a/xwayland/meson.build b/xwayland/meson.build
index 08ad7a39..81cb018e 100644
--- a/xwayland/meson.build
+++ b/xwayland/meson.build
@@ -20,7 +20,19 @@ if not get_option('xwayland').disabled()
msg += 'Required for Xwayland support.'
endif
-xwayland = dependency('xwayland', required: get_option('xwayland'))
+xwayland = dependency(
+ 'xwayland',
+ required: get_option('xwayland'),
+ fallback: 'xserver',
+ default_options: [
+ 'werror=false',
+ 'xorg=false',
+ 'xephyr=false',
+ 'xwayland=true',
+ 'xnest=false',
+ 'xvfb=false',
+ ],
+)
if not xwayland.found()
subdir_done()
endif