Merge pull request #3701 from emersion/meson-subproject-disable-unneeded

Disable unneeded wlroots subproject features
This commit is contained in:
Drew DeVault 2019-02-16 22:57:42 +01:00 committed by GitHub
commit 0bafc55176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,11 @@ rt = cc.find_library('rt')
git = find_program('git', required: false)
# Try first to find wlroots as a subproject, then as a system dependency
wlroots_proj = subproject('wlroots', required: false)
wlroots_proj = subproject(
'wlroots',
default_options: ['rootston=disabled', 'examples=disabled'],
required: false,
)
if wlroots_proj.found()
wlroots = wlroots_proj.get_variable('wlroots')
wlroots_conf = wlroots_proj.get_variable('conf_data')