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.
This commit is contained in:
parent
288c44c052
commit
094c8dc250
|
@ -995,7 +995,7 @@ int dummy;
|
||||||
the build directory.
|
the build directory.
|
||||||
"""
|
"""
|
||||||
result = OrderedSet()
|
result = OrderedSet()
|
||||||
for dep in target.link_targets:
|
for dep in target.link_targets + target.link_whole_targets:
|
||||||
for i in dep.sources:
|
for i in dep.sources:
|
||||||
if hasattr(i, 'fname'):
|
if hasattr(i, 'fname'):
|
||||||
i = i.fname
|
i = i.fname
|
||||||
|
|
Loading…
Reference in New Issue