Skip to content

Commit

Permalink
Fix and improve wlroots meson feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit committed Nov 17, 2023
1 parent c1d3802 commit faff870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ dep_wlroots = dependency('wlroots', version: ['>= 0.17', '< 0.18.0'], fallback:
dep_xcb = dependency('xcb')
dep_xkbcommon = dependency('xkbcommon')

foreach feature : ['libdrm_backend', 'libinput_backend', 'session', 'xwayland']
foreach feature : ['drm_backend', 'libinput_backend', 'session', 'xwayland']
var_feature = 'have_' + feature
if dep_wlroots.get_variable(pkgconfig: var_feature, internal: var_feature) != 'true'
if dep_wlroots.get_variable(pkgconfig: var_feature, internal: var_feature, default_value: 'false') != 'true'
error('Wlroots was not built with ' + feature + ' support. Check for missing dependencies.')
endif
endforeach
Expand Down

0 comments on commit faff870

Please sign in to comment.