mirror of
https://github.com/labwc/labwc.git
synced 2026-03-13 05:33:47 -04:00
meson.build: require wlroots ['>=0.14.0', '<0.15.0']
Also specify required version when using wlroots as subproject
This commit is contained in:
parent
147bd706d4
commit
6744e10301
1 changed files with 3 additions and 1 deletions
|
|
@ -36,10 +36,12 @@ if git.found()
|
||||||
endif
|
endif
|
||||||
add_project_arguments('-DLABWC_VERSION=@0@'.format(version), language: 'c')
|
add_project_arguments('-DLABWC_VERSION=@0@'.format(version), language: 'c')
|
||||||
|
|
||||||
|
wlroots_version = ['>=0.14.0', '<0.15.0']
|
||||||
wlroots_proj = subproject(
|
wlroots_proj = subproject(
|
||||||
'wlroots',
|
'wlroots',
|
||||||
default_options: ['examples=false'],
|
default_options: ['examples=false'],
|
||||||
required: false,
|
required: false,
|
||||||
|
version: wlroots_version,
|
||||||
)
|
)
|
||||||
|
|
||||||
if wlroots_proj.found()
|
if wlroots_proj.found()
|
||||||
|
|
@ -47,7 +49,7 @@ if wlroots_proj.found()
|
||||||
wlroots_conf = wlroots_proj.get_variable('conf_data')
|
wlroots_conf = wlroots_proj.get_variable('conf_data')
|
||||||
wlroots_has_xwayland = wlroots_conf.get('WLR_HAS_XWAYLAND') == 1
|
wlroots_has_xwayland = wlroots_conf.get('WLR_HAS_XWAYLAND') == 1
|
||||||
else
|
else
|
||||||
wlroots = dependency('wlroots', version: ['>=0.13.0', '<0.14.0'])
|
wlroots = dependency('wlroots', version: wlroots_version)
|
||||||
wlroots_has_xwayland = cc.get_define('WLR_HAS_XWAYLAND', prefix: '#include <wlr/config.h>', dependencies: wlroots) == '1'
|
wlroots_has_xwayland = cc.get_define('WLR_HAS_XWAYLAND', prefix: '#include <wlr/config.h>', dependencies: wlroots) == '1'
|
||||||
endif
|
endif
|
||||||
wayland_server = dependency('wayland-server', version: '>=1.19.0')
|
wayland_server = dependency('wayland-server', version: '>=1.19.0')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue