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.
This commit is contained in:

committed by
Aleksander Morgado

parent
db2d2c0ceb
commit
80f274b371
@@ -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']
|
||||
|
Reference in New Issue
Block a user