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
master
Simon Ser 2 years ago
parent 403eac51c4
commit 2827ec6b7b

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

Loading…
Cancel
Save