2022-12-20 18:01:04 +01:00
|
|
|
if not find_program('gtkdoc-scan', required: get_option('docs')).found()
|
|
|
|
message('Not building documentation as gtk-doc was not found')
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2020-05-21 13:58:24 +02:00
|
|
|
conf.set('HAVE_GTK_DOC', 1)
|
|
|
|
|
2020-05-17 01:12:08 +02:00
|
|
|
gnome = import('gnome')
|
|
|
|
|
|
|
|
docconf = configuration_data()
|
|
|
|
docconf.set('HB_VERSION', meson.project_version())
|
|
|
|
|
|
|
|
version_xml = configure_file(input: 'version.xml.in',
|
|
|
|
output: 'version.xml',
|
|
|
|
configuration: docconf)
|
|
|
|
|
|
|
|
content_files = [
|
|
|
|
'usermanual-what-is-harfbuzz.xml',
|
|
|
|
'usermanual-install-harfbuzz.xml',
|
|
|
|
'usermanual-getting-started.xml',
|
|
|
|
'usermanual-glyph-information.xml',
|
|
|
|
'usermanual-shaping-concepts.xml',
|
|
|
|
'usermanual-object-model.xml',
|
|
|
|
'usermanual-buffers-language-script-and-direction.xml',
|
|
|
|
'usermanual-fonts-and-faces.xml',
|
|
|
|
'usermanual-opentype-features.xml',
|
|
|
|
'usermanual-clusters.xml',
|
|
|
|
'usermanual-utilities.xml',
|
|
|
|
'usermanual-integration.xml',
|
|
|
|
version_xml,
|
|
|
|
]
|
|
|
|
|
|
|
|
html_images = [
|
|
|
|
'HarfBuzz.png',
|
|
|
|
'HarfBuzz.svg',
|
|
|
|
]
|
|
|
|
|
2021-01-20 22:49:24 +01:00
|
|
|
ignore_headers = [
|
2023-01-23 22:41:11 +01:00
|
|
|
'hb-features.h',
|
2021-01-20 22:49:24 +01:00
|
|
|
'hb-gobject.h',
|
|
|
|
'hb-gobject-enums.h',
|
|
|
|
'hb-gobject-enums-tmp.h',
|
|
|
|
'hb-gobject-structs.h',
|
|
|
|
]
|
2020-05-17 01:12:08 +02:00
|
|
|
|
|
|
|
gnome.gtkdoc('harfbuzz',
|
|
|
|
main_sgml: 'harfbuzz-docs.xml',
|
2021-11-20 16:09:15 +01:00
|
|
|
src_dir: [meson.current_source_dir() / '..' / 'src',
|
|
|
|
meson.current_build_dir() / '..' / 'src',
|
2020-05-17 01:12:08 +02:00
|
|
|
],
|
|
|
|
scan_args: ['--deprecated-guards=HB_DISABLE_DEPRECATED',
|
2022-12-18 23:15:04 +01:00
|
|
|
'--ignore-decorators=HB_EXTERN|HB_DEPRECATED|HB_DEPRECATED_FOR()',
|
2020-05-17 01:12:08 +02:00
|
|
|
],
|
|
|
|
mkdb_args: ['--source-suffixes=h,cc',
|
|
|
|
'--xml-mode',
|
|
|
|
'--output-format=xml',
|
|
|
|
],
|
|
|
|
content_files: content_files,
|
|
|
|
html_assets: html_images,
|
|
|
|
ignore_headers: ignore_headers,
|
2021-01-20 22:49:24 +01:00
|
|
|
dependencies: [libharfbuzz_dep],
|
2023-02-11 19:02:34 +01:00
|
|
|
install: true,
|
2023-03-06 03:40:04 +01:00
|
|
|
check: get_option('doc_tests'),
|
2023-02-11 19:02:34 +01:00
|
|
|
)
|