aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f49d95bd..559fa4af 100644
--- a/meson.build
+++ b/meson.build
@@ -158,10 +158,16 @@ lib_wlr = library(
link_depends: symbols_file,
)
+wlr_vars = {}
+foreach name, have : features
+ wlr_vars += { 'have_' + name.underscorify(): have.to_string() }
+endforeach
+
wlroots = declare_dependency(
link_with: lib_wlr,
dependencies: wlr_deps,
include_directories: wlr_inc,
+ variables: wlr_vars,
)
meson.override_dependency('wlroots', wlroots)