[rygel] build: Add fatal_warnings configure option



commit 725c45a381c6b3289179eca054be5a7feb03dcd7
Author: Jens Georg <mail jensge org>
Date:   Thu Feb 13 22:08:36 2020 +0100

    build: Add fatal_warnings configure option

 meson.build       | 4 ++++
 meson_options.txt | 1 +
 2 files changed, 5 insertions(+)
---
diff --git a/meson.build b/meson.build
index 3f8671cf..b7034cd9 100644
--- a/meson.build
+++ b/meson.build
@@ -64,6 +64,10 @@ config_include = include_directories('.')
 
 add_global_arguments(['-include','config.h'], language : 'c')
 
+if get_option('fatal_warnings')
+    add_global_arguments(['--fatal-warnings'], language : 'vala')
+endif
+
 valadoc = find_program('valadoc', required : false)
 gtkdoc = dependency('gtk-doc', required : false)
 
diff --git a/meson_options.txt b/meson_options.txt
index 6de516f8..bd61fb60 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -8,3 +8,4 @@ option('tests', type : 'boolean', value : 'true')
 option('gstreamer', type : 'feature', value : 'enabled')
 option('gtk', type : 'feature', value : 'enabled')
 option('introspection', type: 'feature', value : 'auto')
+option('fatal_warnings', type: 'boolean', value : 'false')


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