[gedit-plugins] build: summary message: print list of disabled plugins
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] build: summary message: print list of disabled plugins
- Date: Tue, 12 Nov 2019 09:17:52 +0000 (UTC)
commit d9366b02a841f6f724aa6b4e881062ab1773db79
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Nov 12 10:12:01 2019 +0100
build: summary message: print list of disabled plugins
It's an important information.
And format the message a little differently.
meson.build | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 9a769ad..c4a7e1d 100644
--- a/meson.build
+++ b/meson.build
@@ -41,6 +41,7 @@ configure_file(
# Options
enabled_plugins = []
+disabled_plugins = []
extra_languages = []
all_plugins = {
'bookmarks': {'language': 'c'},
@@ -73,6 +74,8 @@ foreach plugin_name, plugin_metadata : all_plugins
if plugin_language != 'c'
extra_languages += plugin_language
endif
+ else
+ disabled_plugins += plugin_name
endif
endforeach
@@ -97,26 +100,36 @@ meson.add_install_script(
datadir
)
+# Summary message
+
summary = [
'',
- '------',
- 'gedit-plugins @0@'.format(meson.project_version()),
+ 'Configuration:',
+ '',
+ 'gedit-plugins version @0@'.format(meson.project_version()),
'',
- 'Plugins:'
+ 'Enabled plugins:'
]
foreach plugin_name : enabled_plugins
summary += ' ' + plugin_name
endforeach
+summary += [
+ '',
+ 'Disabled plugins:'
+]
+
+foreach plugin_name : disabled_plugins
+ summary += ' ' + plugin_name
+endforeach
+
summary += [
'',
'Directories:',
' prefix: @0@'.format(get_option('prefix')),
' libdir: @0@'.format(libdir),
- ' datadir: @0@'.format(datadir),
- '',
- '------',
+ ' datadir: @0@'.format(datadir)
]
message('\n'.join(summary))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]