From 80f274b37159777a462d7584fb4fc82876229ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Thu, 9 Sep 2021 14:40:58 +0200 Subject: [PATCH] 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. --- plugins/meson.build | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/plugins/meson.build b/plugins/meson.build index 99f875aa..04719510 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']