2019-07-01 16:57:16 +00:00
|
|
|
if get_option('gtk_doc')
|
2021-07-31 18:07:18 +00:00
|
|
|
gsk4_toml = configure_file(
|
|
|
|
input: 'gsk4.toml.in',
|
|
|
|
output: 'gsk4.toml',
|
|
|
|
configuration: toml_conf,
|
|
|
|
install: true,
|
|
|
|
install_dir: docs_dir / 'gsk4',
|
|
|
|
)
|
|
|
|
|
2021-02-10 13:41:53 +00:00
|
|
|
custom_target('gsk4-doc',
|
|
|
|
input: [ gsk4_toml, gsk_gir[0] ],
|
|
|
|
output: 'gsk4',
|
|
|
|
command: [
|
|
|
|
gidocgen,
|
|
|
|
'generate',
|
2021-11-01 13:00:51 +00:00
|
|
|
gidocgen_common_args,
|
2021-02-10 13:41:53 +00:00
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'),
|
|
|
|
'--config=@INPUT0@',
|
|
|
|
'--output-dir=@OUTPUT@',
|
|
|
|
'--content-dir=@0@'.format(meson.current_source_dir()),
|
|
|
|
'@INPUT1@',
|
2020-12-15 12:31:38 +00:00
|
|
|
],
|
2021-02-10 13:41:53 +00:00
|
|
|
depends: [ gdk_gir[0] ],
|
|
|
|
depend_files: [ expand_content_md_files ],
|
|
|
|
build_by_default: true,
|
2021-03-12 11:13:54 +00:00
|
|
|
install: true,
|
|
|
|
install_dir: docs_dir,
|
2020-12-15 12:31:38 +00:00
|
|
|
)
|
2019-05-25 16:27:32 +00:00
|
|
|
endif
|