gstreamer-full: Specify the pattern for MSVC static libraries

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5194>
This commit is contained in:
L. E. Segovia 2023-08-17 22:19:19 -03:00 committed by GStreamer Marge Bot
parent dd6df92702
commit c4b30174a3

View file

@ -120,6 +120,8 @@ if __name__ == "__main__":
filename = os.path.basename(plugin).strip()
if filename.startswith('libgst') and filename.endswith('.a'):
plugin_name = filename[len('libgst'):-len('.a')]
elif filename.startswith('libgst') and filename.endswith('.lib'):
plugin_name = filename[len('libgst'):-len('.lib')]
plugins_registration += ['GST_PLUGIN_STATIC_REGISTER(%s);' % (plugin_name)]
plugins_declaration += ['GST_PLUGIN_STATIC_DECLARE(%s);' % (plugin_name)]