[libsoup/wip/meson: 75/93] meson: Force-include msvc_recommended_pragms.h on Visual Studio



commit 11094baf76b65344decd8369850b68bfc7dc5b90
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Nov 28 17:24:37 2017 +0800

    meson: Force-include msvc_recommended_pragms.h on Visual Studio
    
    Like the Visual Studio projects and the rest of the GTK+ stack, include
    this header that comes with GLib so that we can silence warnings that
    don't really matter, as well as detecting possible problems in the code
    by making the warnimgs that should raise concern to become errors.

 meson.build |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index c9f2191..e667efa 100644
--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,10 @@ soversion = '0'
 
 host_system = host_machine.system()
 
+if cc.get_id() == 'msvc'
+  add_project_arguments('/FImsvc_recommended_pragmas.h', language : 'c')
+endif
+
 glib_dep = [dependency('glib-2.0', version : '>=2.38'),
             dependency('gobject-2.0', version : '>=2.38'),
             dependency('gio-2.0', version : '>=2.38')]


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