[glib] meson: Install msvc_recommended_pragmas.h on Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] meson: Install msvc_recommended_pragmas.h on Windows
- Date: Thu, 17 Aug 2017 09:51:00 +0000 (UTC)
commit 79b84ba3fcde0abbffc51bd62cd395b02ca8e6f3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Aug 16 17:44:20 2017 +0800
meson: Install msvc_recommended_pragmas.h on Windows
Copy the msvc_recommended_pragmas.h helper header when we build for
Windows, so that people developing/using GLib on Windows can make use
of them in Visual Studio, so that unwanted compiler noise can be
filtered out and code with potentially-problematic warnings can be
attended to.
https://bugzilla.gnome.org/show_bug.cgi?id=783270
meson.build | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index 35fd732..60787b7 100644
--- a/meson.build
+++ b/meson.build
@@ -1570,6 +1570,10 @@ configure_file(input : 'config.h.meson',
output : 'config.h',
configuration : glib_conf)
+if host_system == 'windows'
+ install_headers([ 'msvc_recommended_pragmas.h' ], subdir : 'glib-2.0')
+endif
+
if get_option('with-man') != 'no'
xsltproc = find_program('xsltproc', required : false)
if not xsltproc.found() and get_option('with-man') == 'yes'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]