Consider `link_whole` as well as `link_with` for Vala deps
Otherwise, when you have a static helper library written in Vala
that you want to `link_whole` into a shared library you have to
manually add the .vapi file as a source.
@@ -995,7 +995,7 @@ int dummy;
the build directory.
"""
result = OrderedSet()
- for dep in target.link_targets:
+ for dep in target.link_targets + target.link_whole_targets:
for i in dep.sources:
if hasattr(i, 'fname'):
i = i.fname
