mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
docs: Add gi-docgen check to tests
Can be called via: meson test --suite docs
This commit is contained in:
parent
2bbfa92504
commit
a692f0cb07
@ -29,6 +29,18 @@ if get_option('documentation')
|
|||||||
install_dir: docs_dir,
|
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
|
if x11_enabled
|
||||||
gdk4x11_toml = configure_file(
|
gdk4x11_toml = configure_file(
|
||||||
input: 'gdk4-x11.toml.in',
|
input: 'gdk4-x11.toml.in',
|
||||||
@ -87,5 +99,17 @@ if get_option('documentation')
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: docs_dir,
|
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
|
||||||
endif
|
endif
|
||||||
|
@ -30,4 +30,16 @@ if get_option('documentation')
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: docs_dir,
|
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
|
endif
|
||||||
|
@ -64,6 +64,18 @@ if get_option('documentation')
|
|||||||
install_dir: docs_dir,
|
install_dir: docs_dir,
|
||||||
install_tag: 'doc',
|
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
|
endif
|
||||||
|
|
||||||
rst2man = find_program('rst2man', 'rst2man.py', required: get_option('man-pages'))
|
rst2man = find_program('rst2man', 'rst2man.py', required: get_option('man-pages'))
|
||||||
|
Loading…
Reference in New Issue
Block a user