2024-01-11 16:39:51 +01:00
|
|
|
if get_option('documentation') and enable_gir
|
2024-02-05 17:42:31 +01:00
|
|
|
expand_content_files = [
|
|
|
|
'migrating-gi.md',
|
|
|
|
]
|
|
|
|
|
2024-01-11 16:39:51 +01:00
|
|
|
girepository_toml = configure_file(
|
|
|
|
input: 'girepository.toml.in',
|
|
|
|
output: 'girepository.toml',
|
|
|
|
configuration: toml_conf,
|
|
|
|
)
|
2023-11-09 00:16:43 +01:00
|
|
|
|
2024-01-11 16:39:51 +01:00
|
|
|
custom_target('girepository-docs',
|
|
|
|
input: [ girepository_toml, girepository_gir[0] ],
|
|
|
|
output: 'girepository',
|
|
|
|
command: [
|
|
|
|
gidocgen,
|
|
|
|
'generate',
|
|
|
|
gidocgen_common_args,
|
|
|
|
'--config=@INPUT0@',
|
|
|
|
'--output-dir=@OUTPUT@',
|
|
|
|
'--content-dir=@0@'.format(meson.current_source_dir()),
|
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gobject'),
|
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gmodule'),
|
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gio'),
|
|
|
|
'@INPUT1@',
|
|
|
|
],
|
|
|
|
build_by_default: true,
|
2024-02-05 17:42:31 +01:00
|
|
|
depend_files: expand_content_files,
|
2024-02-05 17:46:03 +01:00
|
|
|
install: true,
|
|
|
|
install_dir: docs_dir,
|
|
|
|
install_tag: 'doc',
|
2024-01-11 16:39:51 +01:00
|
|
|
)
|
|
|
|
endif
|