mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
Merge branch 'move-msvc-recommended-pragmas' into 'main'
meson: Move msvc_recommended_pragmas.h to a subdirectory See merge request GNOME/glib!3340
This commit is contained in:
commit
17295bd0b0
@ -150,6 +150,10 @@ glib_headers = files(
|
||||
)
|
||||
install_headers(glib_headers, install_dir : glib_includedir)
|
||||
|
||||
if host_system == 'windows'
|
||||
install_headers([ 'msvc_recommended_pragmas.h' ], install_dir : glib_includedir)
|
||||
endif
|
||||
|
||||
# Expose as variable to be used by gobject-introspection
|
||||
# when it includes GLib as a subproject
|
||||
glib_unix_h = files('glib-unix.h')
|
||||
|
@ -37,7 +37,7 @@ cc_can_run = meson.can_run_host_binaries()
|
||||
if cc.get_argument_syntax() == 'msvc'
|
||||
# Ignore several spurious warnings for things glib does very commonly
|
||||
# (also for clang-cl)
|
||||
add_project_arguments('/FImsvc_recommended_pragmas.h',language : 'c')
|
||||
add_project_arguments('/FIglib/msvc_recommended_pragmas.h', language : 'c')
|
||||
endif
|
||||
|
||||
if cc.get_id() == 'msvc'
|
||||
@ -2420,10 +2420,6 @@ endif
|
||||
|
||||
configure_file(output : 'config.h', configuration : glib_conf)
|
||||
|
||||
if host_system == 'windows'
|
||||
install_headers([ 'msvc_recommended_pragmas.h' ], install_dir : glib_includedir)
|
||||
endif
|
||||
|
||||
if get_option('man')
|
||||
xsltproc = find_program('xsltproc', required : true)
|
||||
xsltproc_command = [
|
||||
|
Loading…
Reference in New Issue
Block a user