2019-09-27 21:02:38 +00:00
|
|
|
zxing_sources = [
|
|
|
|
'gstzxing.cpp',
|
|
|
|
'gstzxingplugin.c',
|
|
|
|
]
|
2022-11-22 11:32:52 +00:00
|
|
|
zxing_dep = dependency('zxing', version : '>= 1.4.0', required : get_option('zxing'))
|
2019-09-27 21:02:38 +00:00
|
|
|
if zxing_dep.found()
|
|
|
|
gstzxing = library('gstzxing',
|
|
|
|
zxing_sources,
|
|
|
|
c_args : gst_plugins_bad_args,
|
2022-11-22 11:32:52 +00:00
|
|
|
cpp_args: '-DZX_USE_UTF8',
|
2019-09-27 21:02:38 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstvideo_dep, zxing_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
2022-11-22 11:32:52 +00:00
|
|
|
override_options : ['cpp_std=c++17'],
|
2019-09-27 21:02:38 +00:00
|
|
|
)
|
|
|
|
plugins += [gstzxing]
|
|
|
|
endif
|