aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-04-12 19:48:46 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-04-12 19:48:46 +0300
commit124b5cc3929f7ae520cdc29e58f60fd0ade65a5b (patch)
tree75ca3a09f678033ba87ca29673db5a58d76d847b /backends.py
parente6e5566b6f35771ba1c06a3c3b57585c603b7ace (diff)
downloadmeson-124b5cc3929f7ae520cdc29e58f60fd0ade65a5b.zip
meson-124b5cc3929f7ae520cdc29e58f60fd0ade65a5b.tar.gz
meson-124b5cc3929f7ae520cdc29e58f60fd0ade65a5b.tar.bz2
Fix find_program test on Windows using terrible hack.
Diffstat (limited to 'backends.py')
-rwxr-xr-xbackends.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends.py b/backends.py
index c92201a..d0e0367 100755
--- a/backends.py
+++ b/backends.py
@@ -438,6 +438,8 @@ class NinjaBackend(Backend):
outfile.write('rule %s\n' % rule.name)
command = ' '.join([ninja_quote(x) for x in rule.cmd_list])
command = command.replace('@INFILE@', '$in').replace('@OUTFILE@', '$out')
+ command = command.replace('@SOURCE_ROOT@', self.environment.get_source_dir())
+ command = command.replace('@BUILD_ROOT@', self.environment.get_build_dir())
outfile.write(' command = %s\n' % command)
desc = rule.description.replace('@INFILE@', '$in')
outfile.write(' description = %s\n' % desc)