spiegel-keyman/core/doc/meson.build
Marc Durdin b5bddc025f chore(core): rename json.hpp to jsonpp.hpp
The name json.hpp conflicts with the JSON for Modern C++ library that
is also used by Developer. Renames json.hpp and json.cpp to jsonpp.hpp
and jsonpp.cpp aka "JSON Pretty Printer".
2022-07-26 13:06:16 +10:00

31 lines
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())
configure_file(input: 'hotdoc.json',
output: 'hotdoc.json',
configuration: cfg)
deps = files(
'../include/keyman/keyboardprocessor.h.in',
'../src/jsonpp.hpp',
'../src/utfcodec.hpp'
)
docs = custom_target('docs',
output: ['html'],
input: ['sitemap.txt', 'markdown_files/index.md'],
command: [hotdoc, '--verbose', '--conf-file=doc/hotdoc.json', '--output=doc', 'run'],
depend_files: deps,
install: true,
install_dir: installdir)
endif