37 lines
931 B
Meson
37 lines
931 B
Meson
|
# Extra markdown files
|
||
|
pika_doc_content_files = [
|
||
|
]
|
||
|
|
||
|
pika_doc_toml = configure_file(
|
||
|
input: 'pika-3.0.toml.in',
|
||
|
output: '@BASENAME@',
|
||
|
configuration: {
|
||
|
'PIKA_VERSION': pika_version,
|
||
|
'PIKA_LOGO_PATH': '../images/' + (stable ? 'pika-logo.png' : 'pika-devel-logo.png'),
|
||
|
},
|
||
|
)
|
||
|
|
||
|
pika_docs = custom_target('pika-docs',
|
||
|
input: libpika_gir[0],
|
||
|
output: 'libpika-@0@'.format(pika_api_version),
|
||
|
command: [
|
||
|
gi_docgen,
|
||
|
'generate',
|
||
|
'--quiet',
|
||
|
'--fatal-warnings',
|
||
|
'--config', pika_doc_toml,
|
||
|
'--output-dir=@OUTPUT@',
|
||
|
'--no-namespace-dir',
|
||
|
'--content-dir=@0@'.format(meson.current_source_dir()),
|
||
|
'--add-include-path=@0@'.format(get_option('prefix') / 'share' / 'gir-1.0'),
|
||
|
'@INPUT@',
|
||
|
],
|
||
|
depend_files: [
|
||
|
pika_doc_toml,
|
||
|
pika_doc_content_files,
|
||
|
],
|
||
|
build_by_default: true,
|
||
|
install: true,
|
||
|
install_dir: get_option('datadir') / 'doc' / 'pika-@0@'.format(pika_app_version),
|
||
|
)
|