aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-05-27 01:20:54 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-05-27 01:20:54 +0300
commitc9cb49764bfb16a66b684803a06cba8d8c31fe9d (patch)
treed547bba03e09e86c065cb08af1b6985457e57cd7 /backends.py
parent292ad6009c67b6e18830012f24fb3e886dafe589 (diff)
downloadmeson-c9cb49764bfb16a66b684803a06cba8d8c31fe9d.zip
meson-c9cb49764bfb16a66b684803a06cba8d8c31fe9d.tar.gz
meson-c9cb49764bfb16a66b684803a06cba8d8c31fe9d.tar.bz2
Worked on expanding the generator so it works with protocol buffers. Does not work yet.
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 1abfdc2..56f0a93 100755
--- a/backends.py
+++ b/backends.py
@@ -535,6 +535,8 @@ class NinjaBackend(Backend):
outfilename = os.path.join(self.get_target_private_dir(target), outfilelist[i])
args = [x.replace("@INPUT@", infilename).replace('@OUTPUT@', outfilename)\
for x in base_args]
+ args = [x.replace("@SOURCE_DIR@", self.environment.get_source_dir()).replace("@BUILD_DIR@", self.environment.get_build_dir())
+ for x in args]
cmdlist = [exe_file] + args
elem = NinjaBuildElement(outfilename, 'CUSTOM_COMMAND', infilename)
elem.add_item('DESC', 'Generating $out')