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.
pull/980/head
Emmanuele Bassi 8 years ago
parent 6762d30c6a
commit 6eeecb8585
  1. 4
      mesonbuild/scripts/gtkdochelper.py

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

Loading…
Cancel
Save