diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-09 14:40:58 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-10 08:39:37 +0000 |
commit | 80f274b37159777a462d7584fb4fc82876229ac2 (patch) | |
tree | c7d8d16288ee340b51134108b810eb802db83179 | |
parent | db2d2c0cebd40c8979cdec46ac70249047f6ba6a (diff) | |
download | ModemManager-80f274b37159777a462d7584fb4fc82876229ac2.tar.gz |
build,meson: Improve plugins helper library building
To avoid those cases where a plugin does not need a helper library
an empty array is created.
However, when a helper library has to be built, it is not necessary
to include the created static library in an array.
-rw-r--r-- | plugins/meson.build | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/meson.build b/plugins/meson.build index 99f875aa2..04719510f 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -918,13 +918,11 @@ endif foreach plugin_name, plugin_data: plugins libhelpers = [] if plugin_data.has_key('helper') - libhelpers += [ - static_library( - 'helpers-' + plugin_name, - dependencies: libport_dep, - kwargs: plugin_data['helper'], - ) - ] + libhelpers = static_library( + 'helpers-' + plugin_name, + dependencies: libport_dep, + kwargs: plugin_data['helper'], + ) endif module_args = plugin_data['module'] |