47 lines
1.2 KiB
Meson
47 lines
1.2 KiB
Meson
svtjpegxs_sources = [
|
|
'gstsvtjpegxs.c',
|
|
'gstsvtjpegxsdec.c',
|
|
'gstsvtjpegxsenc.c',
|
|
]
|
|
|
|
svtjpegxs_headers = [
|
|
'gstsvtjpegxsdec.h',
|
|
'gstsvtjpegxsenc.h',
|
|
]
|
|
|
|
doc_sources = []
|
|
foreach s: svtjpegxs_sources + svtjpegxs_headers
|
|
doc_sources += meson.current_source_dir() / s
|
|
endforeach
|
|
|
|
plugin_sources += {
|
|
'svtjpegxs': pathsep.join(doc_sources)
|
|
}
|
|
|
|
# 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',
|
|
svtjpegxs_sources,
|
|
c_args: gst_plugins_bad_args, # FIXME: needed? + ['-DGST_USE_UNSTABLE_API'],
|
|
include_directories: [configinc],
|
|
dependencies: [gstbase_dep, gstvideo_dep, svtjpegxs_dep],
|
|
install: true,
|
|
install_dir: plugins_install_dir,
|
|
)
|
|
plugins += [gstsvtjpegxs]
|
|
endif
|