Remove UWP / Hololens support

This commit is contained in:
Martin Robinson 2023-07-05 08:46:07 +02:00
parent 041d95e0f4
commit c58d74fe62
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
97 changed files with 54 additions and 7084 deletions

View file

@ -78,18 +78,12 @@ GSTREAMER_PLUGINS = [
]
def windows_dlls(uwp):
def windows_dlls():
libs = list(GSTREAMER_DYLIBS)
NON_UWP_DYLIBS = [
"gstnet",
"gstsctp",
]
if uwp:
libs = filter(lambda x: x not in NON_UWP_DYLIBS, libs)
return [f"{lib}-1.0-0.dll" for lib in libs]
def windows_plugins(uwp):
def windows_plugins():
# FIXME: We should support newer gstreamer versions here that replace
# gstvideoconvert and gstvideoscale with gstvideoconvertscale.
libs = [
@ -98,25 +92,6 @@ def windows_plugins(uwp):
"gstvideoscale",
"gstwasapi"
]
NON_UWP_PLUGINS = [
"gstnice",
# gst-plugins-base
"gstogg",
"gstopengl",
"gstopus",
"gstrtp",
"gsttheora",
"gstvorbis",
# gst-plugins-good
"gstmatroska",
"gstrtpmanager",
"gstvpx",
# gst-plugins-bad
"gstdtls",
"gstwebrtc",
]
if uwp:
libs = filter(lambda x: x not in NON_UWP_PLUGINS, libs)
return [f"{lib}.dll" for lib in libs]
@ -156,7 +131,7 @@ def write_plugin_list(target):
if "apple-" in target:
plugins = [os.path.basename(x) for x in macos_plugins()]
elif '-windows-' in target:
plugins = windows_plugins('-uwp-' in target)
plugins = windows_plugins()
print('''/* This is a generated file. Do not modify. */
pub(crate) static GSTREAMER_PLUGINS: &[&'static str] = &[