mintro: dependencies: added version key

pull/6182/head
Daniel Mensinger 5 years ago
parent 2e62d6a203
commit c361181cd9
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 4
      docs/markdown/IDE-integration.md
  2. 4
      docs/markdown/snippets/introspect.md
  3. 1
      mesonbuild/mintro.py
  4. 1
      run_unittests.py

@ -192,8 +192,8 @@ in a real meson run. Because of this options for the subprojects can differ.
## The dependencies section
The list of all _found_ dependencies can be acquired from
`intro-dependencies.json`. Here, the name, compiler and linker arguments for
a dependency are listed.
`intro-dependencies.json`. Here, the name, version, compiler and linker
arguments for a dependency are listed.
### Scanning for dependecie with `--scan-dependencies`

@ -0,0 +1,4 @@
## Introspection API changes
dependencies (--dependencies, intro-dependencies.json):
- added the `version` key

@ -299,6 +299,7 @@ def list_deps(coredata: cdata.CoreData):
for d in coredata.deps.host.values():
if d.found():
result += [{'name': d.name,
'version': d.get_version(),
'compile_args': d.get_compile_args(),
'link_args': d.get_link_args()}]
return result

@ -3820,6 +3820,7 @@ recommended as it is not supported on some platforms''')
dependencies_typelist = [
('name', str),
('version', str),
('compile_args', list),
('link_args', list),
]

Loading…
Cancel
Save