The absolute path on windows contains ':' which prevents
gstinitstaticplugins.py to work properly. Use the basename whic is good
enough for the script to make the list of plugins
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3526>
plugin_path = plugin.get_variable('full_path')
all_plugins_paths += plugin_path
all_plugins_dirs += fs.parent(plugin_path)
- plugins_names += plugin_path
+ plugins_names += fs.name(plugin_path)
endforeach
# Work around meson bug: https://github.com/mesonbuild/meson/pull/6770
plugin_name = split[0]
if plugin_name == '':
continue
- filename = os.path.basename(plugin)
+ filename = os.path.basename(plugin).strip()
if filename.startswith('libgst') and filename.endswith('.a'):
plugin_name = filename[len('libgst'):-len('.a')]
plugins_registration += ['GST_PLUGIN_STATIC_REGISTER(%s);' % (plugin_name)]