aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorNicolas Schneider <nioncode+git@gmail.com>2016-03-29 12:07:21 +0200
committerNicolas Schneider <nioncode+git@gmail.com>2016-03-29 12:08:34 +0200
commita33d9d56cf72e493e2176b33e95afa8921f26e06 (patch)
tree33f5a61942f813c9720b0b4e93fef9f2a357737d /mesonbuild/backend/backends.py
parentc2a9f81b68ce5d5370a6eff5df1fa678fc59fb17 (diff)
downloadmeson-a33d9d56cf72e493e2176b33e95afa8921f26e06.zip
meson-a33d9d56cf72e493e2176b33e95afa8921f26e06.tar.gz
meson-a33d9d56cf72e493e2176b33e95afa8921f26e06.tar.bz2
vs2010: support EXTRA_ARGS for generators
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 8d0b0f6..bcd8913 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -388,6 +388,15 @@ class Backend():
exe_arr = exe.get_command()
return exe_arr
+ def replace_extra_args(self, args, genlist):
+ final_args = []
+ for a in args:
+ if a == '@EXTRA_ARGS@':
+ final_args += genlist.get_extra_args()
+ else:
+ final_args.append(a)
+ return final_args
+
def eval_custom_target_command(self, target, absolute_paths=False):
if not absolute_paths:
ofilenames = [os.path.join(self.get_target_dir(target), i) for i in target.output]