project('gstreamer', 'c',
- version : '1.19.2.1',
+ version : '1.19.90',
meson_version : '>= 0.59',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
if bashcomp_dep.found()
bashcomp_found = true
bashcomp_dir_override = bashcomp_dep.version().version_compare('>= 2.10') ? ['datadir', datadir] : ['prefix', prefix]
- bash_completions_dir = bashcomp_dep.get_pkgconfig_variable('completionsdir', define_variable: bashcomp_dir_override)
+ bash_completions_dir = bashcomp_dep.get_variable('completionsdir', pkgconfig_define: bashcomp_dir_override)
if bash_completions_dir == ''
msg = 'Found bash-completion but the .pc file did not set \'completionsdir\'.'
if bashcomp_option.enabled()
bashcomp_found = false
endif
- bash_helpers_dir = bashcomp_dep.get_pkgconfig_variable('helpersdir', define_variable: bashcomp_dir_override)
+ bash_helpers_dir = bashcomp_dep.get_variable('helpersdir', pkgconfig_define: bashcomp_dir_override)
if bash_helpers_dir == ''
msg = 'Found bash-completion, but the .pc file did not set \'helpersdir\'.'
if bashcomp_option.enabled()
# Set release date
if gst_version_nano == 0
extract_release_date = find_program('scripts/extract-release-date-from-doap-file.py')
- run_result = run_command(extract_release_date, gst_version, files('gstreamer.doap'))
- if run_result.returncode() == 0
- release_date = run_result.stdout().strip()
- cdata.set_quoted('GST_PACKAGE_RELEASE_DATETIME', release_date)
- message('Package release date: ' + release_date)
- else
- # Error out if our release can't be found in the .doap file
- error(run_result.stderr())
- endif
+ run_result = run_command(extract_release_date, gst_version, files('gstreamer.doap'), check: true)
+ release_date = run_result.stdout().strip()
+ cdata.set_quoted('GST_PACKAGE_RELEASE_DATETIME', release_date)
+ message('Package release date: ' + release_date)
endif
configure_file(output : 'config.h', configuration : cdata)
install_data('gst-element-check-1.0.m4', install_dir : join_paths(get_option('datadir'), 'aclocal'))
-if meson.version().version_compare('>= 0.54')
- plugin_names = []
- foreach plugin: plugins
- # FIXME: Use str.subtring() when we can depend on Meson 0.56
- split = plugin.name().split('gst')
- if split.length() == 2
- plugin_names += [split[1]]
- else
- warning('Need substring API in meson >= 0.56 to properly parse plugin name: ' + plugin.name())
- plugin_names += [plugin.name()]
- endif
- endforeach
- summary({'Plugins':plugin_names}, list_sep: ', ')
-endif
+plugin_names = []
+foreach plugin: plugins
+ if plugin.name().startswith('gst')
+ plugin_names += [plugin.name().substring(3)]
+ else
+ plugin_names += [plugin.name()]
+ endif
+endforeach
+
+summary({
+ 'Plugins': plugin_names,
+}, list_sep: ', ')