mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
53947cad29
Only want to check for json-glib when libqrencode was found, but also it shouldn't be required but depend on the option. Fixes #1465 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1824>
16 lines
684 B
Meson
16 lines
684 B
Meson
qrencode_dep = dependency('libqrencode', required: get_option('qroverlay'))
|
|
if qrencode_dep.found()
|
|
json_dep = dependency('json-glib-1.0', fallback : ['json-glib', 'json_glib_dep'], required: get_option('qroverlay'))
|
|
if json_dep.found()
|
|
gstqroverlay = library('gstqroverlay', ['gstqroverlay.c', 'gstdebugqroverlay.c', 'gstbaseqroverlay.c'],
|
|
c_args : gst_plugins_bad_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gstvideo_dep, qrencode_dep, json_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstqroverlay, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gstqroverlay]
|
|
endif
|
|
endif
|
|
|