mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-19 18:11:03 +00:00
meson: Make gstreamer-gl dependency optional
Minimal systems like docker containers may not have GL Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1614>
This commit is contained in:
parent
627a756f04
commit
e705f0a8a4
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ if get_option('tests').allowed()
|
|||
deps += [['gstreamer-check-1.0', 'gstreamer', 'gst_check_dep', 'gst_check']]
|
||||
endif
|
||||
if get_option('gtk4').allowed()
|
||||
deps += [['gstreamer-gl-1.0', 'gst-plugins-base', 'gst_gl_dep', 'gstgl']]
|
||||
deps += [['gstreamer-gl-1.0', 'gst-plugins-base', 'gst_gl_dep', 'gstgl', get_option('gtk4')]]
|
||||
endif
|
||||
if get_option('threadshare').allowed() or get_option('rtsp').allowed()
|
||||
deps += [['gstreamer-net-1.0', 'gstreamer', 'gst_net_dep', 'gst_net']]
|
||||
|
@ -97,7 +97,7 @@ deps_cache += {'glib-2.0': glib_dep}
|
|||
|
||||
foreach d: deps
|
||||
dep = dependency(d[0], version: gst_req,
|
||||
fallback : [d[1], d[2]])
|
||||
fallback : [d[1], d[2]], required: d.get(4, true))
|
||||
set_variable(d[2], dep)
|
||||
deps_cache += {d[0]: dep}
|
||||
if dep.type_name() == 'internal'
|
||||
|
|
Loading…
Reference in a new issue