mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
meson: use versioned wlroots for dependency()
Adapt to upstream change at https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4614
This commit is contained in:
parent
d0bd591ee7
commit
5d5f7a132c
1 changed files with 8 additions and 3 deletions
11
meson.build
11
meson.build
|
|
@ -37,15 +37,20 @@ if is_freebsd
|
|||
add_project_arguments('-D_C11_SOURCE', language: 'c')
|
||||
endif
|
||||
|
||||
# Execute the wlroots subproject, if any
|
||||
wlroots_version_major = '0.18'
|
||||
wlroots_version = ['>=0.18.0', '<0.19.0']
|
||||
subproject(
|
||||
# Execute the wlroots subproject, if any
|
||||
wlroots_subproject = subproject(
|
||||
'wlroots',
|
||||
default_options: ['examples=false'],
|
||||
required: false,
|
||||
version: wlroots_version,
|
||||
)
|
||||
wlroots = dependency('wlroots', version: wlroots_version)
|
||||
if wlroots_subproject.found()
|
||||
wlroots = dependency('wlroots', version: wlroots_version)
|
||||
else
|
||||
wlroots = dependency('wlroots-' + wlroots_version_major, version: wlroots_version)
|
||||
endif
|
||||
wlroots_features = {
|
||||
'xwayland': false,
|
||||
'libinput_backend': false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue