mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
Added in zbar 0.23.1, it is a mode that prevents zbar from trying to convert the binary data of QR codes to text by guessing the encoding. Add a property that changes the configuration of the zbar image scanner accordingly. <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4688> Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4688>
30 lines
611 B
Meson
30 lines
611 B
Meson
zbar_dep = dependency('zbar', version : '>= 0.23.1', required : get_option('zbar'))
|
|
|
|
zbar_sources = [
|
|
'gstzbar.c',
|
|
]
|
|
|
|
zbar_headers = [
|
|
'gstzbar.h',
|
|
]
|
|
|
|
doc_sources = []
|
|
foreach s: zbar_sources + zbar_headers
|
|
doc_sources += meson.current_source_dir() / s
|
|
endforeach
|
|
|
|
plugin_sources += {
|
|
'zbar': pathsep.join(doc_sources)
|
|
}
|
|
|
|
if zbar_dep.found()
|
|
gstzbar = library('gstzbar',
|
|
'gstzbar.c',
|
|
c_args : gst_plugins_bad_args,
|
|
include_directories : [configinc],
|
|
dependencies : [ gstvideo_dep, zbar_dep ],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
plugins += [gstzbar]
|
|
endif
|