gtkdoc: Use generated types file if there is one

Closes: #3773.
pull/3809/head
Xavier Claessens 7 years ago committed by Jussi Pakkanen
parent d784b5772a
commit 32c22ec492
  1. 5
      mesonbuild/scripts/gtkdochelper.py

@ -117,6 +117,11 @@ def build_gtkdoc(source_root, build_root, doc_subdir, src_subdirs,
scan_cmd += scan_args
gtkdoc_run_check(scan_cmd, abs_out)
# Use the generated types file when available, otherwise gobject_typesfile
# would often be a path to source dir instead of build dir.
if '--rebuild-types' in scan_args:
gobject_typesfile = os.path.join(abs_out, module + '.types')
if gobject_typesfile:
scanobjs_cmd = ['gtkdoc-scangobj'] + scanobjs_args + ['--types=' + gobject_typesfile,
'--module=' + module,

Loading…
Cancel
Save