spiegel-keyman/core/doc/meson.build
Marc Durdin 4ef18f5e29 chore(core): rename keyboardprocessor.h to keyman_core_api.h
Fixes #9721.

Also tweaks some documentation references to keyboardprocessor, but does
not touch those relating to debian/control.
2023-10-09 14:21:01 +07:00

33 lines
1.1 KiB
Meson

# Copyright: © 2018 SIL International.
# Description: Cross platform build script to extract and generate
# documentation for the API. This is speculative ATM.
# Create Date: 5 Oct 2018
# Authors: Tim Eves (TSE)
#
hotdoc = find_program('hotdoc', required: false)
installdir = join_paths(get_option('datadir'), 'doc', meson.project_name())
if hotdoc.found()
cfg = configuration_data()
cfg.set('project_name', meson.project_name())
cfg.set('project_version', meson.project_version())
cfg.set('doc_dir', meson.current_source_dir())
cfg.set('include_dir', meson.current_source_dir() / '../include')
configure_file(input: 'hotdoc.json',
output: 'hotdoc.json',
configuration: cfg)
deps = files(
'../include/keyman/keyman_core_api.h',
'../src/jsonpp.hpp',
'../src/utfcodec.hpp'
)
docs = custom_target('docs',
output: ['html'],
input: ['sitemap.txt', 'markdown_files/index.md', deps],
command: [hotdoc, '--verbose', '--conf-file=doc/hotdoc.json', '--output=doc', 'run'],
depend_files: deps,
install: true,
install_dir: installdir)
endif