[file-roller/wip/jtojnar/cleanups: 2/2] build: Use Meson’s summary feature
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/wip/jtojnar/cleanups: 2/2] build: Use Meson’s summary feature
- Date: Mon, 20 Jun 2022 22:14:20 +0000 (UTC)
commit 806b0f3aeeb22362181fd50330bdaef943540dc6
Author: Jan Tojnar <jtojnar gmail com>
Date: Tue Jun 21 00:05:34 2022 +0200
build: Use Meson’s summary feature
Available since Meson 0.53.
No need to list the project name since Meson is already printing it above the summaries.
meson.build | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7294cd6f..d917869f 100644
--- a/meson.build
+++ b/meson.build
@@ -148,15 +148,13 @@ gnome.post_install(
# Summary
-summary = [
- 'configuration summary:',
- '',
- ' project: @0@ @1@'.format(meson.project_name(), meson.project_version()),
- ' prefix: @0@'.format(prefix),
- ' nautilus actions: @0@'.format(build_nautilus_actions),
- ' packagekit: @0@'.format(get_option('packagekit')),
- ' libarchive: @0@'.format(use_libarchive),
- ' cpio: @0@'.format(cpio_path),
- ''
-]
-message('\n'.join(summary))
+summary(
+ {
+ 'prefix': prefix,
+ 'nautilus actions': build_nautilus_actions,
+ 'packagekit': get_option('packagekit'),
+ 'libarchive': use_libarchive,
+ 'cpio': cpio_path,
+ },
+ section: 'Configuration summary:',
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]