diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-01-10 20:20:09 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-01-10 20:20:38 +0300 |
commit | b96d560f0add71179e9358596ac5eef92c744f8d (patch) | |
tree | dee2b257c0374b09841d78934883da2c530871cf /meson.build | |
parent | bc95a30db688f54b54c3e568ec02471d40b20a19 (diff) |
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>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meson.build b/meson.build index fc2b06847..cebe435a7 100644 --- a/meson.build +++ b/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 |