aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-04-21 15:24:13 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-21 15:33:53 +0200
commitf81aa6a17232e8cbd06c8587e67697de42d53aa8 (patch)
tree2c331efe14b3a31f36866e34226228ae886cfab2
parentab4f6421538a5fc4d539f638018aaf8b35a1f549 (diff)
build: use summary instead of message
-rw-r--r--meson.build25
1 files changed, 9 insertions, 16 deletions
diff --git a/meson.build b/meson.build
index e75d8028..8958ad16 100644
--- a/meson.build
+++ b/meson.build
@@ -169,22 +169,15 @@ wlroots = declare_dependency(
meson.override_dependency('wlroots', wlroots)
-summary = [
- '',
- '----------------',
- 'wlroots @0@'.format(meson.project_version()),
- '',
- ' libcap: @0@'.format(conf_data.get('WLR_HAS_LIBCAP', false)),
- ' systemd: @0@'.format(conf_data.get('WLR_HAS_SYSTEMD', false)),
- ' elogind: @0@'.format(conf_data.get('WLR_HAS_ELOGIND', false)),
- ' xwayland: @0@'.format(conf_data.get('WLR_HAS_XWAYLAND', false)),
- ' x11_backend: @0@'.format(conf_data.get('WLR_HAS_X11_BACKEND', false)),
- ' xcb-icccm: @0@'.format(conf_data.get('WLR_HAS_XCB_ICCCM', false)),
- ' xcb-errors: @0@'.format(conf_data.get('WLR_HAS_XCB_ERRORS', false)),
- '----------------',
- ''
-]
-message('\n'.join(summary))
+summary({
+ 'libcap': conf_data.get('WLR_HAS_LIBCAP', 0),
+ 'systemd': conf_data.get('WLR_HAS_SYSTEMD', 0),
+ 'elogind': conf_data.get('WLR_HAS_ELOGIND', 0),
+ 'xwayland': conf_data.get('WLR_HAS_XWAYLAND', 0),
+ 'x11_backend': conf_data.get('WLR_HAS_X11_BACKEND', 0),
+ 'xcb-icccm': conf_data.get('WLR_HAS_XCB_ICCCM', 0),
+ 'xcb-errors': conf_data.get('WLR_HAS_XCB_ERRORS', 0),
+})
if get_option('examples')
subdir('examples')