mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
meson: Only enable cargo features when options are enabled
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/285 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1041>
This commit is contained in:
parent
bc95a30db6
commit
b96d560f0a
1 changed files with 8 additions and 3 deletions
11
meson.build
11
meson.build
|
@ -316,15 +316,20 @@ endif
|
|||
if gst_dep.version().version_compare('>=1.21')
|
||||
components = [
|
||||
'', '-app', '-audio', '-base', '-check', '-net', '-pbutils',
|
||||
'-plugin-tracers', '-rtp', '-sdp', '-utils', '-video', '-webrtc',
|
||||
'-rtp', '-sdp', '-utils', '-video', '-webrtc',
|
||||
]
|
||||
if get_option('tracers').allowed()
|
||||
components += '-plugin-tracers'
|
||||
endif
|
||||
foreach c: components
|
||||
features += f'gst@c@/v1_22'
|
||||
endforeach
|
||||
features += ['gst-plugin-webrtc/gst1_22']
|
||||
if get_option('webrtc').allowed()
|
||||
features += 'gst-plugin-webrtc/gst1_22'
|
||||
endif
|
||||
endif
|
||||
|
||||
if find_program('nasm', required: false).found()
|
||||
if get_option('rav1e').allowed() and find_program('nasm', required: false).found()
|
||||
features += 'gst-plugin-rav1e/asm'
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue