project('gst-plugins-good', 'c', 'cpp',
- version : '1.11.0.1',
- meson_version : '>= 0.35.0',
+ version : '1.12.2',
+ meson_version : '>= 0.36.0',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
# 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
# NOTE: Only add warnings here if you are sure they're spurious
- add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c')
+ add_project_arguments(
+ '/wd4018', # implicit signed/unsigned conversion
+ '/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
# are built with MinGW
noseh_link_args = ['/SAFESEH:NO']
# check token HAVE_WAVEFORM
]
+libm = cc.find_library('m', required : false)
+
foreach f : check_functions
- if cc.has_function(f.get(1), prefix : f.get(2))
+ if cc.has_function(f.get(1), prefix : f.get(2), dependencies : libm)
cdata.set(f.get(0), 1)
endif
endforeach
gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
fallback : ['gst-plugins-base', 'video_dep'])
-libm = cc.find_library('m', required : false)
zlib_dep = dependency('zlib')
bz2lib = cc.find_library('bz2', required : false)
gio_dep = dependency('gio-2.0', version : glib_req)
cdata.set('DISABLE_ORC', 1)
endif
+if gst_dep.type_name() == 'internal'
+ gst_proj = subproject('gstreamer')
+
+ if gst_proj.get_variable('disable_gst_debug')
+ message('GStreamer debug system is disabled')
+ add_project_arguments('-Wno-unused', language: 'c')
+ else
+ message('GStreamer debug system is enabled')
+ endif
+else
+ # We can't check that in the case of subprojects as we won't
+ # be able to build against an internal dependency (which is not built yet)
+ if not cc.compiles('''
+#include <gst/gstconfig.h>
+#ifdef GST_DISABLE_GST_DEBUG
+#error "debugging disabled, make compiler fail"
+#endif''' , dependencies: gst_dep)
+ message('GStreamer debug system is disabled')
+ add_project_arguments('-Wno-unused', language: 'c')
+ else
+ message('GStreamer debug system is enabled')
+ endif
+endif
+
+presetdir = join_paths(get_option('datadir'), 'gstreamer-' + api_version, 'presets')
+
subdir('gst')
subdir('sys')
subdir('ext')
subdir('tests')
subdir('po')
+subdir('pkgconfig')
configure_file(input : 'config.h.meson',
output : 'config.h',