Handle outputs in arrays in mesonintrospect. Closes #50.

pull/54/merge
Jussi Pakkanen 10 years ago
parent ea4b9c590e
commit df357211a8
  1. 7
      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):

Loading…
Cancel
Save