From 2654d375489b82e20d1c9fb2abb82fd1395fe2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 3 May 2019 23:18:49 +0200 Subject: [PATCH] meson: no need to build static libs of plugins --- decorations/meson.build | 6 ++---- particles/meson.build | 7 ++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/decorations/meson.build b/decorations/meson.build index 4f40751..1e20a4b 100644 --- a/decorations/meson.build +++ b/decorations/meson.build @@ -9,11 +9,9 @@ foreach deco : ['background', 'stack', 'underline'] install: true, install_dir: join_paths(get_option('libdir'), 'f00bar')) else - lib = static_library( - 'decoration_@0@'.format(deco), '@0@.c'.format(deco), dependencies: deco_sdk) - decorations += [declare_dependency( - link_with: lib, + sources: '@0@.c'.format(deco), + dependencies: deco_sdk, compile_args: '-DHAVE_PLUGIN_@0@'.format(deco.underscorify()))] endif endforeach diff --git a/particles/meson.build b/particles/meson.build index 5ca2804..f016496 100644 --- a/particles/meson.build +++ b/particles/meson.build @@ -9,12 +9,9 @@ foreach particle : ['empty', 'list', 'map', 'progress-bar', 'ramp', 'string'] install: true, install_dir: join_paths(get_option('libdir'), 'f00bar')) else - lib = static_library( - 'particle_@0@'.format(particle), '@0@.c'.format(particle), - dependencies: particle_sdk) - particles += [declare_dependency( - link_with: lib, + sources: '@0@.c'.format(particle), + dependencies: particle_sdk, compile_args: '-DHAVE_PLUGIN_@0@'.format(particle.underscorify()))] endif endforeach