mesonintrospect: List all installed files

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
pull/1760/head
Quentin Glidic 8 years ago committed by Jussi Pakkanen
parent 855715b29e
commit 10c435fabe
  1. 6
      mesonbuild/mintro.py

@ -65,8 +65,14 @@ def determine_installed_path(target, installdata):
def list_installed(installdata):
res = {}
if installdata is not None:
for path, installdir, aliases, unknown1, unknown2 in installdata.targets:
res[os.path.join(installdata.build_dir, path)] = os.path.join(installdata.prefix, installdir, os.path.basename(path))
for path, installpath, unused_prefix in installdata.data:
res[path] = os.path.join(installdata.prefix, installpath)
for path, installdir in installdata.headers:
res[path] = os.path.join(installdata.prefix, installdir, os.path.basename(path))
for path, installpath in installdata.man:
res[path] = os.path.join(installdata.prefix, installpath)
print(json.dumps(res))

Loading…
Cancel
Save