diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-11-01 11:59:59 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-11-01 14:10:56 +0000 |
commit | 6eeecb8585aed84759f968efb315e97db0cc8e52 (patch) | |
tree | 31b44220db2b242191af07b1d0552ad28fb64c77 /mesonbuild/scripts/gtkdochelper.py | |
parent | 6762d30c6a9b5da6a90f7c1eadc06d449dbd9a33 (diff) | |
download | meson-6eeecb8585aed84759f968efb315e97db0cc8e52.zip meson-6eeecb8585aed84759f968efb315e97db0cc8e52.tar.gz meson-6eeecb8585aed84759f968efb315e97db0cc8e52.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/scripts/gtkdochelper.py')
-rwxr-xr-x | mesonbuild/scripts/gtkdochelper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/scripts/gtkdochelper.py b/mesonbuild/scripts/gtkdochelper.py index 53b1c32..4f8a9a5 100755 --- a/mesonbuild/scripts/gtkdochelper.py +++ b/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) |