gtkdochelper: Add 'overrides.txt' to the content files

If a `<modulename>-overrides.txt` file exists in the docs directory it
means it's intended to be used in place of the one gtk-doc generates.

GLib and GTK+, for instance, ship with one because some of the types
they provide — like the thread primitives, or the platform macros —
contain architecture-dependent fields that should not be accessed
directly.

This commit should close the last bit of issue #550.
This commit is contained in:
Emmanuele Bassi 2016-11-01 11:59:59 +00:00
parent 6762d30c6a
commit 6eeecb8585
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ def build_gtkdoc(source_root, build_root, doc_subdir, src_subdir,
if os.path.exists(sections):
content_files.append(sections)
overrides = os.path.join(doc_src, module + "-overrides.txt")
if os.path.exists(overrides):
content_files.append(overrides)
# Copy files to build directory
for f in content_files:
f_abs = os.path.join(doc_src, f)