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

View file

@ -20,7 +20,19 @@ if not get_option('xwayland').disabled()
msg += 'Required for Xwayland support.' msg += 'Required for Xwayland support.'
endif 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() if not xwayland.found()
subdir_done() subdir_done()
endif endif