diff --git a/docs/reference/gdk/meson.build b/docs/reference/gdk/meson.build index c860eb2ca3..0ab874875a 100644 --- a/docs/reference/gdk/meson.build +++ b/docs/reference/gdk/meson.build @@ -29,6 +29,18 @@ if get_option('documentation') install_dir: docs_dir, ) + test('doc-check-gdk', + gidocgen, + args: [ + 'check', + '--config', gdk4_toml, + '--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'), + gdk_gir[0], + ], + depends: gdk_gir[0], + suite: ['docs'], + ) + if x11_enabled gdk4x11_toml = configure_file( input: 'gdk4-x11.toml.in', @@ -87,5 +99,17 @@ if get_option('documentation') install: true, install_dir: docs_dir, ) + + test('doc-check-gdk-wayland', + gidocgen, + args: [ + 'check', + '--config', gdk4wayland_toml, + '--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'), + gdk_wayland_gir[0], + ], + depends: gdk_wayland_gir[0], + suite: ['docs'], + ) endif endif diff --git a/docs/reference/gsk/meson.build b/docs/reference/gsk/meson.build index 6b8fa76b1f..a2f84995e9 100644 --- a/docs/reference/gsk/meson.build +++ b/docs/reference/gsk/meson.build @@ -30,4 +30,16 @@ if get_option('documentation') install: true, install_dir: docs_dir, ) + + test('doc-check-gsk', + gidocgen, + args: [ + 'check', + '--config', gsk4_toml, + '--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'), + gsk_gir[0], + ], + depends: gsk_gir[0], + suite: ['docs'], + ) endif diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build index afec8dd82b..c25d9a9f69 100644 --- a/docs/reference/gtk/meson.build +++ b/docs/reference/gtk/meson.build @@ -64,6 +64,18 @@ if get_option('documentation') install_dir: docs_dir, install_tag: 'doc', ) + + test('doc-check-gtk', + gidocgen, + args: [ + 'check', + '--config', gtk4_toml, + '--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'), + gtk_gir[0], + ], + depends: gtk_gir[0], + suite: ['docs'], + ) endif rst2man = find_program('rst2man', 'rst2man.py', required: get_option('man-pages'))