Julian Bouzas 1b041d8114 lcevcdec: Set LCEVCdec min version to 4.0.0 and fix build
V-Nova's LCEVCdec SDK 4.0.0 was released with a small API change. This patch
fixes the 'lcevcdec' element so that it builds with the new version. For more
information see:

https://github.com/v-novaltd/LCEVCdec/blob/4.0.0/docs/v4_migration_guide.md

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9414>
2025-08-06 17:45:14 +00:00

47 lines
1.0 KiB
Meson

lcevcdecoder_sources = [
'plugin.c',
'gstlcevcdecutils.c',
'gstlcevcdec.c',
'gstlcevcdecodebin.c',
'gstlcevch264decodebin.c',
'gstlcevch265decodebin.c',
'gstlcevch266decodebin.c',
]
lcevcdecoder_headers = [
'gstlcevcdec.h',
'gstlcevch264decodebin.h',
'gstlcevch265decodebin.h',
'gstlcevch266decodebin.h',
'gstlcevcdecutils.h',
'gstlcevcdecodebin.h',
]
doc_sources = []
foreach s: lcevcdecoder_sources + lcevcdecoder_headers
doc_sources += meson.current_source_dir() / s
endforeach
plugin_sources += {
'lcevcdecoder': pathsep.join(doc_sources)
}
lcevc_dec_dep = dependency ('lcevc_dec', version: '>= 4.0.1', required: get_option('lcevcdecoder'))
if lcevc_dec_dep.found()
gstlcevcdecoder = library('gstlcevcdecoder',
lcevcdecoder_sources,
c_args : gst_plugins_bad_args,
include_directories : [configinc],
dependencies : [
gstpbutils_dep,
gstvideo_dep,
gstcodecparsers_dep,
lcevc_dec_dep,
],
install : true,
install_dir : plugins_install_dir,
)
plugins += [gstlcevcdecoder]
endif