mirror of https://github.com/GNOME/gimp.git
40 lines
1.1 KiB
Meson
40 lines
1.1 KiB
Meson
# Extra markdown files
|
|
gimp_ui_doc_content_files = [
|
|
'widget-gallery.md',
|
|
]
|
|
|
|
gimp_ui_doc_toml = configure_file(
|
|
input: 'gimp-ui-3.0.toml.in',
|
|
output: '@BASENAME@',
|
|
configuration: {
|
|
'GIMP_VERSION': gimp_version,
|
|
'GIMP_LOGO': '../images/' + (stable ? 'gimp-logo.png' : 'gimp-devel-logo.png'),
|
|
},
|
|
)
|
|
|
|
gimp_ui_docs = custom_target('gimp-ui-docs',
|
|
input: libgimpui_gir[0],
|
|
output: 'libgimpui-@0@'.format(gimp_api_version),
|
|
command: [
|
|
gi_docgen,
|
|
'generate',
|
|
'--quiet',
|
|
'--fatal-warnings',
|
|
'--config', gimp_ui_doc_toml,
|
|
'--output-dir=@OUTPUT@',
|
|
'--no-namespace-dir',
|
|
'--content-dir=@0@'.format(meson.current_source_dir()),
|
|
'--add-include-path=@0@'.format(meson.project_build_root() / 'libgimp'),
|
|
'--add-include-path=@0@'.format(get_option('prefix') / 'share' / 'gir-1.0'),
|
|
'@INPUT@',
|
|
],
|
|
depends: libgimp_gir[0],
|
|
depend_files: [
|
|
gimp_ui_doc_toml,
|
|
gimp_ui_doc_content_files,
|
|
],
|
|
build_by_default: true,
|
|
install: true,
|
|
install_dir: get_option('datadir') / 'doc' / 'gimp-@0@'.format(gimp_app_version),
|
|
)
|