Commit 591541d1 authored by D Scott Phillips's avatar D Scott Phillips Committed by Tim-Philipp Müller

meson: add_global_arguments -> add_project_arguments

https://bugzilla.gnome.org/show_bug.cgi?id=774656
parent 11fd0e61
project('gst-plugins-good', 'c', 'cpp', project('gst-plugins-good', 'c', 'cpp',
version : '1.11.0.1', version : '1.11.0.1',
meson_version : '>= 0.35.0', meson_version : '>= 0.36.0',
default_options : [ 'warning_level=1', default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ]) 'buildtype=debugoptimized' ])
...@@ -29,9 +29,12 @@ if cc.get_id() == 'msvc' ...@@ -29,9 +29,12 @@ if cc.get_id() == 'msvc'
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
# If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once # If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
# NOTE: Only add warnings here if you are sure they're spurious # NOTE: Only add warnings here if you are sure they're spurious
if not meson.is_subproject() add_project_arguments(
add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c') '/wd4018', # implicit signed/unsigned conversion
endif '/wd4146', # unary minus on unsigned (beware INT_MIN)
'/wd4244', # lossy type conversion (e.g. double -> int)
'/wd4305', # truncating type conversion (e.g. double -> float)
language : 'c')
# Disable SAFESEH with MSVC for plugins and libs that use external deps that # Disable SAFESEH with MSVC for plugins and libs that use external deps that
# are built with MinGW # are built with MinGW
noseh_link_args = ['/SAFESEH:NO'] noseh_link_args = ['/SAFESEH:NO']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment