declare_dependency(objects: )
A new argument to declare_dependency makes it possible to add objects directly to executables that use an internal dependency, without going for example through link_whole.
declare_dependency
link_whole