From fdd9088e0533511262da28ed551910691fe13b7f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 8 Feb 2021 15:17:53 +0100 Subject: build: set have_* dep variables for our features This allows users to to something like this when wlroots is used as a subproject: wlr_has_xwayland = wlroots.get_variable('have_xwayland') Instead of having to parse conf_data from the subproject object. --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3