diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-04-26 17:47:06 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-03 15:10:57 +0100 |
commit | c984c3b55ed97032e00eb3dbba28ee88a52ded17 (patch) | |
tree | 6170d6781fac8aa46927cae0335b6d6707a0b8b2 /docs | |
parent | 91dee46497241d75269d2742d761c913dcaea059 (diff) | |
download | gtk+-c984c3b55ed97032e00eb3dbba28ee88a52ded17.tar.gz |
build: Initial attempt at fixing the docs build
We need to reference the types file directly, because it won't be copied
into the builddir by Meson — except for GTK, which needs to generate its
own types file using configure_file().
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gdk/gdk4.types | 2 | ||||
-rw-r--r-- | docs/reference/gdk/meson.build | 5 | ||||
-rw-r--r-- | docs/reference/gsk/meson.build | 3 | ||||
-rw-r--r-- | docs/reference/gtk/meson.build | 18 |
4 files changed, 19 insertions, 9 deletions
diff --git a/docs/reference/gdk/gdk4.types b/docs/reference/gdk/gdk4.types index 115f6e4bcf..b53fd6ef54 100644 --- a/docs/reference/gdk/gdk4.types +++ b/docs/reference/gdk/gdk4.types @@ -1,5 +1,3 @@ -#include <gdk/gdk.h> - gdk_app_launch_context_get_type gdk_cursor_get_type gdk_device_get_type diff --git a/docs/reference/gdk/meson.build b/docs/reference/gdk/meson.build index e569767547..ed3dfd385e 100644 --- a/docs/reference/gdk/meson.build +++ b/docs/reference/gdk/meson.build @@ -156,10 +156,9 @@ gnome.gtkdoc('gdk4', join_paths(meson.build_root(), 'gdk'), ], dependencies: libgtk_dep, - gobject_typesfile: 'gdk4.types', + gobject_typesfile: join_paths(meson.source_root(), 'docs/reference/gdk/gdk4.types'), scan_args: [ - '--ignore-decorators=_GDK_EXTERN', - '--ignore-decorators=G_GNUC_WARN_UNUSED_RESULT', + '--ignore-decorators=_GDK_EXTERN|G_GNUC_WARN_UNUSED_RESULT', '--ignore-headers=' + ' '.join(private_headers), ], fixxref_args: [ diff --git a/docs/reference/gsk/meson.build b/docs/reference/gsk/meson.build index 0464afbf04..6ae9d2c965 100644 --- a/docs/reference/gsk/meson.build +++ b/docs/reference/gsk/meson.build @@ -43,10 +43,9 @@ gnome.gtkdoc('gsk4', join_paths(meson.build_root(), 'gsk'), ], dependencies: libgtk_dep, - gobject_typesfile: 'gsk4.types', + gobject_typesfile: join_paths(meson.source_root(), 'docs/reference/gsk/gsk4.types'), scan_args: [ '--ignore-decorators=_GDK_EXTERN', - '--ignore-decorators=G_GNUC_WARN_UNUSED_RESULT', '--ignore-headers=' + ' '.join(private_headers), ], fixxref_args: [ diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build index 4f51593aa6..c762cef4f1 100644 --- a/docs/reference/gtk/meson.build +++ b/docs/reference/gtk/meson.build @@ -6,6 +6,21 @@ images = [ configure_file(input: 'version.xml.in', output: 'version.xml', configuration: version_conf) +types_conf = configuration_data() +if os_win32 + types_conf.set('DISABLE_ON_W32', '%') +else + types_conf.set('DISABLE_ON_W32', '') +endif + +if os_darwin + types_conf.set('DISABLE_ON_QUARTZ', '%') +else + types_conf.set('DISABLE_ON_QUARTZ', '') +endif + +configure_file(input: 'gtk4.types.in', output: 'gtk4.types', configuration: types_conf) + gnome.gtkdoc('gtk4', main_xml: 'gtk4-docs.xml', src_dir: [ @@ -15,8 +30,7 @@ gnome.gtkdoc('gtk4', dependencies: libgtk_dep, gobject_typesfile: 'gtk4.types', scan_args: [ - '--ignore-decorators=_GDK_EXTERN', - '--ignore-decorators=G_GNUC_WARN_UNUSED_RESULT', + '--ignore-decorators=_GDK_EXTERN|G_GNUC_WARN_UNUSED_RESULT', '--ignore-headers=' + ' '.join(private_headers), ], fixxref_args: [ |