wraps: Add svtjpegxs from wrapdb

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9214>
This commit is contained in:
Xavier Claessens 2025-06-12 11:09:42 -04:00 committed by GStreamer Marge Bot
parent 230fe47b59
commit 961e7753b9
2 changed files with 27 additions and 1 deletions

View File

@ -18,7 +18,20 @@ plugin_sources += {
'svtjpegxs': pathsep.join(doc_sources)
}
svtjpegxs_dep = dependency('SvtJpegxs', version: '>= 0.9', required: get_option('svtjpegxs'))
# Print a message if this architecture is not supported, but still try in case
# it is now supported. We know the fallback won't work until it gets updated.
cpu_family = host_machine.cpu_family()
arch_supported = cpu_family in ['x86_64']
if not arch_supported
message(f'SvtJpegxs is not supported on @cpu_family@ architectures.')
message('Please open an issue if new architectures have been added.')
endif
svtjpegxs_dep = dependency('SvtJpegxs',
version: '>= 0.9',
required: get_option('svtjpegxs'),
allow_fallback: arch_supported,
)
if svtjpegxs_dep.found()
gstsvtjpegxs = library('gstsvtjpegxs',

View File

@ -0,0 +1,13 @@
[wrap-file]
directory = SVT-JPEG-XS-0.9.0
source_filename = SVT-JPEG-XS-0.9.0.tar.gz
source_url = https://github.com/OpenVisualCloud/SVT-JPEG-XS/archive/refs/tags/v0.9.0.tar.gz
source_hash = ff5dfb3b98348a39049da4fd3062d3391cbadec4c4b61825a9f3435ca671effa
patch_filename = svtjpegxs_0.9.0-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/svtjpegxs_0.9.0-1/get_patch
patch_hash = d3f52d1f6be84045157ed9dcae72017d9b0dbed32d910297786b733235edba1d
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/svtjpegxs_0.9.0-1/SVT-JPEG-XS-0.9.0.tar.gz
wrapdb_version = 0.9.0-1
[provide]
dependency_names = SvtJpegxs