forked from AuroraMiddleware/gtk
142571d0b8
And only enable `--fatal-warnings` if `-Dwerror` has been set, just like we do for the introspection data generation.
30 lines
748 B
Meson
30 lines
748 B
Meson
if get_option('gtk_doc')
|
|
gsk4_toml = configure_file(
|
|
input: 'gsk4.toml.in',
|
|
output: 'gsk4.toml',
|
|
configuration: toml_conf,
|
|
install: true,
|
|
install_dir: docs_dir / 'gsk4',
|
|
)
|
|
|
|
custom_target('gsk4-doc',
|
|
input: [ gsk4_toml, gsk_gir[0] ],
|
|
output: 'gsk4',
|
|
command: [
|
|
gidocgen,
|
|
'generate',
|
|
gidocgen_common_args,
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'),
|
|
'--config=@INPUT0@',
|
|
'--output-dir=@OUTPUT@',
|
|
'--content-dir=@0@'.format(meson.current_source_dir()),
|
|
'@INPUT1@',
|
|
],
|
|
depends: [ gdk_gir[0] ],
|
|
depend_files: [ expand_content_md_files ],
|
|
build_by_default: true,
|
|
install: true,
|
|
install_dir: docs_dir,
|
|
)
|
|
endif
|