[gnome-builder] build: add configuration status message



commit 1cc7bfefbc9b397636c932157fec3c3ba64f89d5
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jun 18 16:27:09 2017 -0700

    build: add configuration status message
    
    This gives us something similar to what we had previously with our
    autoconfig configuration output.

 meson.build         |   33 +++++++++++++++++++++++++++++
 meson_options.txt   |    1 -
 plugins/meson.build |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 91 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 9ffe756..8e7e131 100644
--- a/meson.build
+++ b/meson.build
@@ -22,6 +22,37 @@ pkggirdir = join_paths(get_option('datadir'),'gnome-builder', 'gir-1.0')
 pkgtypelibdir = join_paths(get_option('libdir'), 'gnome-builder', 'girepository-1.0')
 pkgvapidir = join_paths(get_option('datadir'), 'gnome-builder/vapi')
 
+
+status = [
+  '', '',
+  'gnome-builder @0@ (@1@)'.format(meson.project_version(), get_option('with_channel')),
+  '', '',
+]
+
+# Message of doom
+if (version_split[1].to_int() % 2 == 1)
+  status += [
+    'You are building a debug version of GNOME builder. There may be more',
+    'bugs in this version that you are comfortable with. Addtionally, there',
+    'is a chance it will eat all of your work and leave you sad and alone.',
+    '', ''
+  ]
+endif
+
+status += [
+  'Version ............... : @0@'.format(meson.project_version()),
+  'Channel ............... : @0@'.format(get_option('with_channel')),
+  'Build Type ............ : @0@'.format(get_option('buildtype')),
+  '',
+  'Prefix ................ : @0@'.format(get_option('prefix')),
+  'Libdir ................ : @0@'.format(join_paths(get_option('prefix'), get_option('libdir'))),
+  '',
+  'Tracing ............... : @0@'.format(get_option('enable_tracing')),
+  'Profiling ............. : @0@'.format(get_option('enable_profiling')),
+  'RDTSCP ................ : @0@'.format(get_option('enable_rdtscp')),
+  '', ''
+]
+
 conf = configuration_data()
 conf.set_quoted('PACKAGE_NAME', 'gnome-builder')
 conf.set_quoted('PACKAGE_VERSION', meson.project_version())
@@ -283,3 +314,5 @@ run_target('builder-dist',
     meson.project_name(),
   ]
 )
+
+message('\n  '.join(status))
diff --git a/meson_options.txt b/meson_options.txt
index 49dce48..c997017 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -42,7 +42,6 @@ option('with_gcc', type: 'boolean')
 option('with_gettext', type: 'boolean')
 option('with_git', type: 'boolean')
 option('with_gnome_code_assistance', type: 'boolean')
-option('with_hello_cpp', type: 'boolean')
 option('with_html_completion', type: 'boolean')
 option('with_html_preview', type: 'boolean')
 option('with_jedi', type: 'boolean')
diff --git a/plugins/meson.build b/plugins/meson.build
index 4c9406d..64c7d31 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -58,3 +58,61 @@ subdir('todo')
 subdir('vala-pack')
 subdir('valgrind')
 subdir('xml-pack')
+
+status += [
+  'Plugins:',
+  '',
+  'Autotools ............. : @0@'.format(get_option('with_autotools')),
+  'Beautifier ............ : @0@'.format(get_option('with_beautifier')),
+  'C Language Pack ....... : @0@'.format(get_option('with_c_pack')),
+  'Cargo ................. : @0@'.format(get_option('with_cargo')),
+  'Clang ................. : @0@'.format(get_option('with_clang')),
+  'CMake ................. : @0@'.format(get_option('with_cmake')),
+  'Color Picker .......... : @0@'.format(get_option('with_color_picker')),
+  'Command Bar ........... : @0@'.format(get_option('with_command_bar')),
+  'Comment Code .......... : @0@'.format(get_option('with_comment_code')),
+  'Project Wizard ........ : @0@'.format(get_option('with_create_project')),
+  'CTags ................. : @0@'.format(get_option('with_ctags')),
+  'Devhelp ............... : @0@'.format(get_option('with_devhelp')),
+  'ESLint ................ : @0@'.format(get_option('with_eslint')),
+  'File Search ........... : @0@'.format(get_option('with_file_search')),
+  'Flatpak ............... : @0@'.format(get_option('with_flatpak')),
+  'Fpaste ................ : @0@'.format(get_option('with_fpaste')),
+  'GCC ................... : @0@'.format(get_option('with_gcc')),
+  'Gettext ............... : @0@'.format(get_option('with_gettext')),
+  'Git ................... : @0@'.format(get_option('with_git')),
+  'GNOME Code Assistance . : @0@'.format(get_option('with_gnome_code_assistance')),
+  'HTML Completion ....... : @0@'.format(get_option('with_html_completion')),
+  'HTML Preview .......... : @0@'.format(get_option('with_html_preview')),
+  'Python Jedi ........... : @0@'.format(get_option('with_jedi')),
+  'JHBuild ............... : @0@'.format(get_option('with_jhbuild')),
+  'Make .................. : @0@'.format(get_option('with_make')),
+  'Meson ................. : @0@'.format(get_option('with_meson')),
+  'MinGW ................. : @0@'.format(get_option('with_mingw')),
+  'Mono .................. : @0@'.format(get_option('with_mono')),
+  'Notifications ......... : @0@'.format(get_option('with_notification')),
+  'PHPize ................ : @0@'.format(get_option('with_phpize')),
+  'Project Tree .......... : @0@'.format(get_option('with_project_tree')),
+  'Python GI Completion .. : @0@'.format(get_option('with_python_gi_imports_completion')),
+  'Python Language Pack .. : @0@'.format(get_option('with_python_pack')),
+  'Quick Highlight ....... : @0@'.format(get_option('with_quick_highlight')),
+  'Retab ................. : @0@'.format(get_option('with_retab')),
+  'Rust Language Server .. : @0@'.format(get_option('with_rust_langserv')),
+  'RustUp ................ : @0@'.format(get_option('with_rustup')),
+  'Support Tool .......... : @0@'.format(get_option('with_support')),
+  'Symbol Tree ........... : @0@'.format(get_option('with_symbol_tree')),
+  'System Monitor ........ : @0@'.format(get_option('with_sysmon')),
+  'Sysprof Profiler ...... : @0@'.format(get_option('with_sysprof')),
+  'Terminal .............. : @0@'.format(get_option('with_terminal')),
+  'Todo .................. : @0@'.format(get_option('with_todo')),
+  'Vala Language Pack .... : @0@'.format(get_option('with_vala_pack')),
+  'Valgrind .............. : @0@'.format(get_option('with_valgrind')),
+  'XML Language Pack ..... : @0@'.format(get_option('with_xml_pack')),
+  '', '',
+
+  'Templates:',
+  '',
+  'Autotools ............. : @0@'.format(get_option('with_autotools_templates')),
+  'Meson ................. : @0@'.format(get_option('with_meson_templates')),
+  '', ''
+]


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