[gvfs] build: Print summary of the options
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] build: Print summary of the options
- Date: Mon, 5 Mar 2018 13:33:20 +0000 (UTC)
commit 1f2977db1e7e56a6964565c1e5c52f216fd5a387
Author: Ondrej Holy <oholy redhat com>
Date: Thu Mar 1 10:08:04 2018 +0100
build: Print summary of the options
autotools does print summary of the options at the end of the
configuration step, but meson doesn't. Let's add the summary again,
but use names and order from meson_options.txt.
https://bugzilla.gnome.org/show_bug.cgi?id=793920
meson.build | 44 ++++++++++++++++++++++++++++++++++++++++++--
meson_options.txt | 2 +-
2 files changed, 43 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 0330977..88529e9 100644
--- a/meson.build
+++ b/meson.build
@@ -499,11 +499,13 @@ subdir('daemon')
subdir('monitor')
subdir('po')
-if get_option('deprecated_programs')
+enable_deprecated_programs = get_option('deprecated_programs')
+if enable_deprecated_programs
subdir('programs')
endif
-if get_option('man')
+enable_man = get_option('man')
+if enable_man
subdir('man')
endif
@@ -519,3 +521,41 @@ meson.add_install_script(
gvfs_datadir,
gvfs_libdir
)
+
+output = meson.project_name() + ' configuration summary:\n'
+output += '\n'
+output += ' dbus_service_dir: ' + dbus_service_dir + '\n'
+output += ' gio_module_dir: ' + gio_module_dir + '\n'
+output += ' systemduserunitdir: ' + systemd_user_unit_dir + '\n'
+output += ' tmpfilesdir: ' + tmp_files_dir + '\n'
+output += '\n'
+output += ' admin: ' + enable_admin.to_string() + '\n'
+output += ' afc: ' + enable_afc.to_string() + '\n'
+output += ' afp: ' + enable_afp.to_string() + '\n'
+output += ' archive: ' + enable_archive.to_string() + '\n'
+output += ' cdda: ' + enable_cdda.to_string() + '\n'
+output += ' dnssd: ' + enable_dnssd.to_string() + '\n'
+output += ' gdu: ' + enable_gdu.to_string() + '\n'
+output += ' goa: ' + enable_goa.to_string() + '\n'
+output += ' google: ' + enable_google.to_string() + '\n'
+output += ' gphoto2: ' + enable_gphoto2.to_string() + '\n'
+output += ' http: ' + enable_http.to_string() + '\n'
+output += ' mtp: ' + enable_mtp.to_string() + '\n'
+output += ' nfs: ' + enable_nfs.to_string() + '\n'
+output += ' smb: ' + enable_samba.to_string() + '\n'
+output += ' udisks2: ' + enable_udisks2.to_string() + '\n'
+output += '\n'
+output += ' bluray: ' + enable_bluray.to_string() + '\n'
+output += ' fuse: ' + enable_fuse.to_string() + '\n'
+output += ' gcr: ' + enable_gcr.to_string() + '\n'
+output += ' gcrypt: ' + enable_gcrypt.to_string() + '\n'
+output += ' gudev: ' + enable_gudev.to_string() + '\n'
+output += ' keyring: ' + enable_keyring.to_string() + '\n'
+output += ' logind: ' + enable_logind.to_string() + '\n'
+output += ' libusb: ' + enable_libusb.to_string() + '\n'
+output += '\n'
+output += ' deprecated_programs: ' + enable_deprecated_programs.to_string() + '\n'
+output += ' devel_utils: ' + enable_devel_utils.to_string() + '\n'
+output += ' installed_tests: ' + enable_installed_tests.to_string() + '\n'
+output += ' man: ' + enable_man.to_string() + '\n'
+message(output)
diff --git a/meson_options.txt b/meson_options.txt
index de30b57..5f5041c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -28,7 +28,7 @@ option('keyring', type: 'boolean', value: true, description: 'build with keyring
option('logind', type: 'boolean', value: true, description: 'build with logind support')
option('libusb', type: 'boolean', value: true, description: 'build with libusb interruption support')
+option('deprecated_programs', type: 'boolean', value: false, description: 'generate deprecated programs')
option('devel_utils', type: 'boolean', value: false, description: 'build with development utility programs')
option('installed_tests', type: 'boolean', value: false, description: 'enable installed unit tests')
option('man', type: 'boolean', value: false, description: 'generate man pages')
-option('deprecated_programs', type: 'boolean', value: false, description: 'generate deprecated programs')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]