aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-07-27 03:11:50 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-07-27 03:11:50 +0300
commitaf0ca6751a9b8d1c9ad643602b7d699ed8bc7a76 (patch)
tree6706b9ee8cde2723d62867e30ce336af50d6a401 /build.py
parentbae850775328650c3fc326221a97cf74ea3f04c3 (diff)
downloadmeson-af0ca6751a9b8d1c9ad643602b7d699ed8bc7a76.zip
meson-af0ca6751a9b8d1c9ad643602b7d699ed8bc7a76.tar.gz
meson-af0ca6751a9b8d1c9ad643602b7d699ed8bc7a76.tar.bz2
Made all unit tests pass again.
Diffstat (limited to 'build.py')
-rw-r--r--build.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/build.py b/build.py
index 8136d9e..daa2777 100644
--- a/build.py
+++ b/build.py
@@ -637,8 +637,11 @@ class CustomTarget:
self.dependencies.append(c)
# GIR scanner will attempt to execute this binary but
# it assumes that it is in path, so always give it a full path.
- totarget = os.path.join('.', c.get_subdir(), c.get_filename())
- final_cmd.append(totarget)
+ tmp = c.get_filename()
+ if isinstance(tmp, str):
+ tmp =[tmp]
+ totarget = [os.path.join('.', c.get_subdir(), i) for i in tmp]
+ final_cmd += totarget
elif isinstance(c, list):
# Hackety hack, only supports one level of flattening. Should really
# work to arbtrary depth.