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:
parent
6762d30c6a
commit
6eeecb8585
|
@ -69,6 +69,10 @@ def build_gtkdoc(source_root, build_root, doc_subdir, src_subdir,
|
||||||
if os.path.exists(sections):
|
if os.path.exists(sections):
|
||||||
content_files.append(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
|
# Copy files to build directory
|
||||||
for f in content_files:
|
for f in content_files:
|
||||||
f_abs = os.path.join(doc_src, f)
|
f_abs = os.path.join(doc_src, f)
|
||||||
|
|
Loading…
Reference in New Issue