[atk] meson: Force-include msvc_recommended_pragmas.h on MSVC
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] meson: Force-include msvc_recommended_pragmas.h on MSVC
- Date: Fri, 8 Sep 2017 16:06:12 +0000 (UTC)
commit b7c27035f49cdfe6cd1f71011b786002d4b8fc9b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Aug 9 15:47:12 2017 +0800
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
meson.build | 4 ++++
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 = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]