gtkdoc: Use generated types file if there is one

Closes: #3773.
This commit is contained in:
Xavier Claessens 2018-06-21 14:06:41 -04:00 committed by Jussi Pakkanen
parent d784b5772a
commit 32c22ec492
1 changed files with 5 additions and 0 deletions

View File

@ -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,