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
This commit is contained in:
Simon Ser 2023-01-27 16:26:36 +01:00
parent 403eac51c4
commit 2827ec6b7b
1 changed files with 13 additions and 1 deletions

View File

@ -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