From 79b84ba3fcde0abbffc51bd62cd395b02ca8e6f3 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 16 Aug 2017 17:44:20 +0800 Subject: [PATCH] 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 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 35fd73211..60787b7b8 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'