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
|
foreach plugin_name, plugin_data: plugins
|
||||||
libhelpers = []
|
libhelpers = []
|
||||||
if plugin_data.has_key('helper')
|
if plugin_data.has_key('helper')
|
||||||
libhelpers += [
|
libhelpers = static_library(
|
||||||
static_library(
|
'helpers-' + plugin_name,
|
||||||
'helpers-' + plugin_name,
|
dependencies: libport_dep,
|
||||||
dependencies: libport_dep,
|
kwargs: plugin_data['helper'],
|
||||||
kwargs: plugin_data['helper'],
|
)
|
||||||
)
|
|
||||||
]
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
module_args = plugin_data['module']
|
module_args = plugin_data['module']
|
||||||
|
Reference in New Issue
Block a user