project('gst-libav', 'c', 'cpp',
version : '1.15.0.1',
- meson_version : '>= 0.36.0',
+ meson_version : '>= 0.46.0',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
cdata.set('PACKAGE', '"gst-libav"')
# GStreamer package name and origin url
-gst_package_name = get_option('with-package-name')
+gst_package_name = get_option('package-name')
if gst_package_name == ''
if gst_version_nano == 0
gst_package_name = 'GStreamer FFMPEG Plug-ins source release'
endif
endif
cdata.set_quoted('GST_PACKAGE_NAME', gst_package_name)
-cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('with-package-origin'))
+cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('package-origin'))
check_headers = [['unistd.h', 'HAVE_UNISTD_H']]
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
- if gst_proj.get_variable('disable_gst_debug')
+ if not gst_proj.get_variable('gst_debug')
message('GStreamer debug system is disabled')
add_project_arguments('-Wno-unused', language: 'c')
else
-option('with-package-name', type : 'string',
+option('package-name', type : 'string', yield : true,
description : 'package name to use in plugins')
-option('with-package-origin', type : 'string', value : 'Unknown package origin',
+option('package-origin', type : 'string',
+ value : 'Unknown package origin', yield : true,
description : 'package origin URL to use in plugins')