[gtk+] build: Print out a configuration summary



commit 08526d4da0a550254925d14c1cd70d2e3bf6fe88
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Aug 18 16:56:09 2017 +0100

    build: Print out a configuration summary
    
    Add some easy to check summary of the configuration step, especially for
    optional features that can use automatic discovery.

 meson.build |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index 8fd6665..7aa4d21 100644
--- a/meson.build
+++ b/meson.build
@@ -599,6 +599,20 @@ if get_option('enable-documentation')
   subdir('docs/reference')
 endif
 
+summary = [
+  '',
+  '------',
+  'GTK+ @0@ (@1@)'.format(gtk_version, gtk_api_version),
+  '',
+  '  Enabled backends: @0@'.format(pkg_targets.strip()),
+  '  Documentation: @0@'.format(get_option('enable-documentation')),
+  '  Vulkan support: @0@'.format(have_vulkan),
+  '------',
+  ''
+]
+
+message('\n'.join(summary))
+
 # Keep this in sync with post-install.sh expected arguments
 meson.add_install_script('build-aux/meson/post-install.sh',
                          gtk_api_version,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]