summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-08-07 20:55:35 +0200
committerEmmanuele Bassi <ebassi@gnome.org>2017-08-13 11:25:59 +0100
commitcf7491b035c7caebd872584a272b7faefef00511 (patch)
tree53d86e8bec44bf701377d0b4fb89f277e9304c11 /docs
parent5c4025b4a6283927eba5f8a3e69b17b9c46b6a4b (diff)
downloadgdk-pixbuf-cf7491b035c7caebd872584a272b7faefef00511.tar.gz
meson: Use configure_file() to copy typesfile
The working directory is the builddir and gnome.gtkdoc is not smart enough to figure out whether the filename(s) passed are found in the builddir or srcdir. Using files() doesn't help, either, since it always generates paths to the builddir. Other projects (GStreamer, Grilo) seem to use configure_file to copy the typesfile to the builddir. Follow this. This fixes the following error: Cannot open gdk-pixbuf.types: No such file or directory https://bugzilla.gnome.org/show_bug.cgi?id=785964
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gdk-pixbuf/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/reference/gdk-pixbuf/meson.build b/docs/reference/gdk-pixbuf/meson.build
index 47f241094..3fb01f0e3 100644
--- a/docs/reference/gdk-pixbuf/meson.build
+++ b/docs/reference/gdk-pixbuf/meson.build
@@ -21,6 +21,12 @@ private_headers = [
]
if get_option('with_docs')
+ # This should not be needed, but gnome.gtkdoc() does not copy the
+ # .types file into the builddir, if one is found
+ configure_file(input: 'gdk-pixbuf.types',
+ output: 'gdk-pixbuf.types',
+ configuration: configuration_data())
+
gnome.gtkdoc('gdk-pixbuf',
main_xml: 'gdk-pixbuf.xml',
src_dir: [