forked from external/yambar
meson: no need to build static libs of plugins
This commit is contained in:
parent
3b48ba7566
commit
2654d37548
2 changed files with 4 additions and 9 deletions
|
@ -9,11 +9,9 @@ foreach deco : ['background', 'stack', 'underline']
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(get_option('libdir'), 'f00bar'))
|
install_dir: join_paths(get_option('libdir'), 'f00bar'))
|
||||||
else
|
else
|
||||||
lib = static_library(
|
|
||||||
'decoration_@0@'.format(deco), '@0@.c'.format(deco), dependencies: deco_sdk)
|
|
||||||
|
|
||||||
decorations += [declare_dependency(
|
decorations += [declare_dependency(
|
||||||
link_with: lib,
|
sources: '@0@.c'.format(deco),
|
||||||
|
dependencies: deco_sdk,
|
||||||
compile_args: '-DHAVE_PLUGIN_@0@'.format(deco.underscorify()))]
|
compile_args: '-DHAVE_PLUGIN_@0@'.format(deco.underscorify()))]
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
@ -9,12 +9,9 @@ foreach particle : ['empty', 'list', 'map', 'progress-bar', 'ramp', 'string']
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(get_option('libdir'), 'f00bar'))
|
install_dir: join_paths(get_option('libdir'), 'f00bar'))
|
||||||
else
|
else
|
||||||
lib = static_library(
|
|
||||||
'particle_@0@'.format(particle), '@0@.c'.format(particle),
|
|
||||||
dependencies: particle_sdk)
|
|
||||||
|
|
||||||
particles += [declare_dependency(
|
particles += [declare_dependency(
|
||||||
link_with: lib,
|
sources: '@0@.c'.format(particle),
|
||||||
|
dependencies: particle_sdk,
|
||||||
compile_args: '-DHAVE_PLUGIN_@0@'.format(particle.underscorify()))]
|
compile_args: '-DHAVE_PLUGIN_@0@'.format(particle.underscorify()))]
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
Loading…
Add table
Reference in a new issue