diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-08 15:16:10 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-15 16:32:33 +0100 |
commit | 6f873078d4c0a941954be2873d3bb37f63ff31a8 (patch) | |
tree | c3148fc9ba03b6230c8241bd478748aae080b0ca /backend | |
parent | 2118a3ce47951352ee88bf475124988723d2d20a (diff) |
build: use dictionnary for features instead of configuration_data
This allows us to easily iterate on all features and only deal with
bools.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/session/meson.build | 8 | ||||
-rw-r--r-- | backend/x11/meson.build | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/backend/session/meson.build b/backend/session/meson.build index 140d4105..29fcf6e4 100644 --- a/backend/session/meson.build +++ b/backend/session/meson.build @@ -33,7 +33,7 @@ if get_option('logind-provider') == 'auto' version: logind_version, ) if logind.found() - conf_data.set10('WLR_HAS_SYSTEMD', true) + features += { 'systemd': true } else logind = dependency('libelogind', required: get_option('logind'), @@ -41,7 +41,7 @@ if get_option('logind-provider') == 'auto' version: logind_version, ) if logind.found() - conf_data.set10('WLR_HAS_ELOGIND', true) + features += { 'elogind': true } endif endif logind_found = logind.found() @@ -53,7 +53,7 @@ else version: logind_version, ) if logind.found() - conf_data.set10('WLR_HAS_' + get_option('logind-provider').to_upper(), true) + features += { get_option('logind-provider'): true } logind_found = true endif endif @@ -69,5 +69,5 @@ libseat = dependency('libseat', required: get_option('libseat'), version: '>=0.2 if libseat.found() wlr_files += files('libseat.c') wlr_deps += libseat - conf_data.set10('WLR_HAS_LIBSEAT', true) + features += { 'libseat': true } endif diff --git a/backend/x11/meson.build b/backend/x11/meson.build index 206e9042..6d38af19 100644 --- a/backend/x11/meson.build +++ b/backend/x11/meson.build @@ -35,4 +35,4 @@ wlr_files += files( 'output.c', ) wlr_deps += x11_libs -conf_data.set10('WLR_HAS_X11_BACKEND', true) +features += { 'x11-backend': true } |