diff options
Diffstat (limited to 'backends.py')
-rwxr-xr-x | backends.py | 2 |
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) |