aboutsummaryrefslogtreecommitdiff
path: root/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-07-19 01:14:21 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-07-19 01:14:21 +0300
commit7814ef986fc0413630a7a6b7dbc169fc2ce39b03 (patch)
tree958e8e63592756e469b356b49ad3b81245779cfc /ninjabackend.py
parent09c24654a69a737f7079befe251ba0a89932035d (diff)
downloadmeson-7814ef986fc0413630a7a6b7dbc169fc2ce39b03.zip
meson-7814ef986fc0413630a7a6b7dbc169fc2ce39b03.tar.gz
meson-7814ef986fc0413630a7a6b7dbc169fc2ce39b03.tar.bz2
Set up link paths.
Diffstat (limited to 'ninjabackend.py')
-rw-r--r--ninjabackend.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ninjabackend.py b/ninjabackend.py
index 21dfd351..c9f6993 100644
--- a/ninjabackend.py
+++ b/ninjabackend.py
@@ -449,7 +449,12 @@ class NinjaBackend(backends.Backend):
else:
raise MesonException('Unknown C# target type.')
commands += compiler.get_output_args(outname_rel)
+ deps = []
+ for l in target.link_targets:
+ commands += compiler.get_link_args(l.get_filename())
+ deps.append(l.get_filename())
elem = NinjaBuildElement(outname_rel, 'cs_COMPILER', rel_srcs)
+ elem.add_dep(deps)
elem.add_item('ARGS', commands)
elem.write(outfile)