mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
qroverlay: fix auto detection of json-glib for plugin
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>
This commit is contained in:
parent
d1e7290109
commit
53947cad29
1 changed files with 12 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
|||
qrencode_dep = dependency('libqrencode', required: get_option('qroverlay'))
|
||||
json_dep = dependency('json-glib-1.0', fallback : ['json-glib', 'json_glib_dep'])
|
||||
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],
|
||||
|
@ -11,4 +12,5 @@ if qrencode_dep.found()
|
|||
pkgconfig.generate(gstqroverlay, install_dir : plugins_pkgconfig_install_dir)
|
||||
plugins += [gstqroverlay]
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue