meson: Add options to enable webrtc-livekit/aws

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1806>
This commit is contained in:
Thibault Saunier 2025-02-13 10:37:48 -03:00 committed by GStreamer Marge Bot
parent 2ac9e584d8
commit 03b7e8ccdd
2 changed files with 11 additions and 0 deletions

View file

@ -167,6 +167,7 @@ plugins = {
'webrtc': {
'library': 'libgstrswebrtc',
'examples': ['webrtcsink-stats-server'],
'option-features': ['aws', 'livekit']
},
'textahead': {'library': 'libgsttextahead'},
@ -462,6 +463,14 @@ foreach plugin_name, details: plugins
continue
endif
option_features = []
foreach feature : details.get('option-features', [])
if get_option(f'@plugin_name@-@feature@').allowed()
message(f'Enabling @feature@ for @plugin_name@')
features += [feature]
endif
endforeach
# Check if we have the required GStreamer version
if details.has_key('gst-version') and not \
deps_cache['gstreamer-1.0'].version().version_compare(details['gst-version'])

View file

@ -38,6 +38,8 @@ option('relationmeta', type: 'feature', value: 'auto', description: 'Build relat
option('rtsp', type: 'feature', value: 'auto', description: 'Build rtsp plugin')
option('rtp', type: 'feature', value: 'auto', description: 'Build rtp plugin')
option('webrtc', type: 'feature', value: 'auto', yield: true, description: 'Build webrtc plugin')
option('webrtc-livekit', type: 'feature', value: 'disabled', description: 'Build webrtc aws')
option('webrtc-aws', type: 'feature', value: 'disabled', description: 'Build webrtc livekit')
option('webrtchttp', type: 'feature', value: 'auto', description: 'Build webrtchttp plugin')
option('quinn', type: 'feature', value: 'auto', description: 'Build quinn plugin')