summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2017-08-09 15:47:12 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2017-09-09 00:05:35 +0800
commitb7c27035f49cdfe6cd1f71011b786002d4b8fc9b (patch)
treeecbc8bc1a4fd31d924bab5784644d8388e692276
parent6ac68af3e80b7b17c23a3c65233043550a7fa685 (diff)
downloadatk-b7c27035f49cdfe6cd1f71011b786002d4b8fc9b.tar.gz
meson: Force-include msvc_recommended_pragmas.h on MSVC
Like the rest of the GTK+ stack, force include GLib's msvc_recommended_pragmas.h as we have done in the Visual Studio projects so that we can silence some unwanted noise, as well as finding out potential issues in the code. https://bugzilla.gnome.org/show_bug.cgi?id=785802
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 44806d0..78dc45f 100644
--- a/meson.build
+++ b/meson.build
@@ -40,6 +40,10 @@ atk_libversion = '@0@.@1@.@2@'.format(atk_soversion, (atk_binary_age - atk_inter
add_project_arguments([ '-DG_DISABLE_SINGLE_INCLUDES', '-DATK_DISABLE_SINGLE_INCLUDES' ], language: 'c')
+if cc.get_id() == 'msvc'
+ add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c')
+endif
+
# Compiler and linker flags
common_cflags = []
common_ldflags = []