Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2023-10-18 12:03:22 +0300
committerNirbheek Chauhan <nirbheek@centricular.com>2023-10-18 12:17:16 +0300
commit84b0dd89802255299670b90e7e2a2a114a418bad (patch)
tree14ea70cb92e9f905c2b01eb7c7d0edf8a59d7d86 /meson.build
parentc4a788b97bf2f01ce8d7e3da9687aae9fcd9220c (diff)
meson: Enable the RTP option when WebRTC is enabled
And make the webrtc option yielding, see: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5505 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1363>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 6 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 162da11d5..b2509fa41 100644
--- a/meson.build
+++ b/meson.build
@@ -65,11 +65,14 @@ deps = [
['gstreamer-video-1.0', 'gst-plugins-base', 'video_dep', 'gstvideo']
]
+webrtc_option = get_option('webrtc')
+rtp_option = get_option('rtp').enable_if(webrtc_option.enabled(), error_message: 'webrtc option is enabled')
+
if get_option('threadshare').allowed() \
or get_option('onvif').allowed() \
or get_option('raptorq').allowed() \
- or get_option('rtp').allowed() \
- or get_option('webrtc').allowed()
+ or rtp_option.allowed() \
+ or webrtc_option.allowed()
deps += [['gstreamer-rtp-1.0', 'gst-plugins-base', 'rtp_dep', 'gst_rtp']]
endif
if get_option('webrtc').allowed() \
@@ -351,7 +354,7 @@ if get_option('default_library') == 'static'
endif
foreach plugin_name, details: plugins
- plugin_opt = get_option(plugin_name)
+ plugin_opt = get_variable(f'@plugin_name@_option', get_option(plugin_name))
if plugin_opt.allowed()
plugin_deps_found = true
foreach dep_name, dep_ver: details.get('extra-deps', {})