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