diff options
author | Lily Foster <lily@lily.flowers> | 2023-04-18 23:26:11 +0300 |
---|---|---|
committer | Lily Foster <lily@lily.flowers> | 2023-04-18 23:26:11 +0300 |
commit | 760e97c7e7138b1db95f9bafd8a061e60d0a4345 (patch) | |
tree | 17f2486945ea1381bbbdd850ed4f5065f868e9bc /meson.build | |
parent | 721d17e1818a82c6b3fdf9468ec82938e91969a8 (diff) |
meson: avoid passing the --features flag to wrapper when empty
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1184>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 70caa401b..da9649bb5 100644 --- a/meson.build +++ b/meson.build @@ -355,6 +355,10 @@ foreach plugin_name, details: plugins endif endforeach +feature_args = [] +if features.length() > 0 + feature_args += ['--features', features] +endif plugins_install_dir = get_option('libdir') / 'gstreamer-1.0' pkgconfig_install_dir = get_option('libdir') / 'pkgconfig' @@ -397,10 +401,9 @@ rs_plugins = custom_target('gst-plugins-rs', get_option('prefix'), get_option('libdir'), '--packages', packages, - '--features', features, '--depfile', '@DEPFILE@', '--lib-suffixes', library_suffixes, - ] + extra_args) + ] + feature_args + extra_args) plugins = rs_plugins.to_list() @@ -521,10 +524,9 @@ if get_option('examples').allowed() and examples.length() > 0 get_option('libdir'), '--depfile', '@DEPFILE@', '--packages', packages, - '--features', features, '--examples', examples, '--exe-suffix', exe_suffix, - ]) + ] + feature_args) endif test('tests', |