Modify mesonintrospect --dependencies so 1 element in list is 1 dependency

Makes it less awkward for tools to parse the data.

Was modified to return a list, with two elements for each dependency,
instead of a dictionary in ac1c929f66 .

Closes #2018.
pull/2046/head
Martin Ejdestig 8 years ago
parent b43f4841ba
commit 76c1faf8bf
  1. 6
      mesonbuild/mintro.py

@ -160,9 +160,9 @@ def list_deps(coredata):
result = []
for d in coredata.deps.values():
if d.found():
args = {'compile_args': d.get_compile_args(),
'link_args': d.get_link_args()}
result += [d.name, args]
result += [{'name': d.name,
'compile_args': d.get_compile_args(),
'link_args': d.get_link_args()}]
print(json.dumps(result))
def list_tests(testdata):

Loading…
Cancel
Save