diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-19 12:29:27 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-19 12:29:27 +0200 |
commit | df357211a81a63919c64336ce7e4cc373a744e74 (patch) | |
tree | f8bd662e07cb62aeffc3ebf09ea8630efac9995f | |
parent | ea4b9c590e42e4c42b358f75b7eb6f0b15241a1f (diff) | |
download | meson-df357211a81a63919c64336ce7e4cc373a744e74.zip meson-df357211a81a63919c64336ce7e4cc373a744e74.tar.gz meson-df357211a81a63919c64336ce7e4cc373a744e74.tar.bz2 |
Handle outputs in arrays in mesonintrospect. Closes #50.
-rwxr-xr-x | mesonintrospect.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonintrospect.py b/mesonintrospect.py index 1048f69..4903c5e 100755 --- a/mesonintrospect.py +++ b/mesonintrospect.py @@ -44,7 +44,12 @@ def list_targets(coredata, builddata): for target in builddata.get_targets().values(): t = {} t['name'] = target.get_basename() - t['filename'] = os.path.join(target.subdir, target.get_filename()) + fname = target.get_filename() + if isinstance(fname, list): + fname = [os.path.join(target.subdir, x) for x in fname] + else: + fname = os.path.join(target.subdir, fname) + t['filename'] = fname if isinstance(target, build.Executable): typename = 'executable' elif isinstance(target, build.SharedLibrary): |