diff options
author | Martin Ejdestig <marejde@gmail.com> | 2017-07-09 12:20:05 +0200 |
---|---|---|
committer | Martin Ejdestig <marejde@gmail.com> | 2017-07-20 12:43:55 +0200 |
commit | 76c1faf8bfe6a95a30b37cd70001e585e6c1d860 (patch) | |
tree | 17e7df89ac119a848d13e9bdaf95cc6af9752930 | |
parent | b43f4841ba5de2e8bc956eb9fd1f578f90d7ae15 (diff) | |
download | meson-76c1faf8bfe6a95a30b37cd70001e585e6c1d860.zip meson-76c1faf8bfe6a95a30b37cd70001e585e6c1d860.tar.gz meson-76c1faf8bfe6a95a30b37cd70001e585e6c1d860.tar.bz2 |
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 ac1c929f66bde7209f1bd7e2d995dbd3949e1d8b .
Closes #2018.
-rw-r--r-- | mesonbuild/mintro.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py index 5e672bb..7356175 100644 --- a/mesonbuild/mintro.py +++ b/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): |