2021-02-10 13:41:53 +00:00
|
|
|
expand_content_md_files = [
|
2017-04-19 10:35:45 +00:00
|
|
|
]
|
|
|
|
|
2021-02-10 13:41:53 +00:00
|
|
|
gdk4_toml = configure_file(input: 'gdk4.toml.in', output: 'gdk4.toml', configuration: toml_conf)
|
2021-02-21 15:38:39 +00:00
|
|
|
gdk4x11_toml = configure_file(input: 'gdk4-x11.toml.in', output: 'gdk4-x11.toml', configuration: toml_conf)
|
|
|
|
gdk4wayland_toml = configure_file(input: 'gdk4-wayland.toml.in', output: 'gdk4-wayland.toml', configuration: toml_conf)
|
2018-06-15 15:51:15 +00:00
|
|
|
|
2019-07-01 16:57:16 +00:00
|
|
|
if get_option('gtk_doc')
|
2021-02-10 13:41:53 +00:00
|
|
|
custom_target('gdk4-doc',
|
|
|
|
input: [ gdk4_toml, gdk_gir[0] ],
|
|
|
|
output: 'gdk4',
|
|
|
|
command: [
|
|
|
|
gidocgen,
|
|
|
|
'generate',
|
2021-02-18 13:38:29 +00:00
|
|
|
'--quiet',
|
2021-02-10 13:41:53 +00:00
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'),
|
|
|
|
'--config=@INPUT0@',
|
|
|
|
'--output-dir=@OUTPUT@',
|
|
|
|
'--no-namespace-dir',
|
|
|
|
'--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
|
|
|
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
|
|
|
)
|
2021-02-10 13:41:53 +00:00
|
|
|
|
|
|
|
if x11_enabled
|
|
|
|
custom_target('gdk4-x11-doc',
|
2021-02-21 15:38:39 +00:00
|
|
|
input: [ gdk4x11_toml, gdk_x11_gir[0] ],
|
2021-02-10 13:41:53 +00:00
|
|
|
output: 'gdk4-x11',
|
|
|
|
command: [
|
|
|
|
gidocgen,
|
|
|
|
'generate',
|
2021-02-18 13:38:29 +00:00
|
|
|
'--quiet',
|
2021-02-10 13:41:53 +00:00
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'),
|
|
|
|
'--config=@INPUT0@',
|
|
|
|
'--output-dir=@OUTPUT@',
|
|
|
|
'--no-namespace-dir',
|
|
|
|
'--content-dir=@0@'.format(meson.current_source_dir()),
|
|
|
|
'@INPUT1@',
|
|
|
|
],
|
|
|
|
depends: [ gdk_gir[0] ],
|
2021-02-21 15:38:39 +00:00
|
|
|
depend_files: [ ],
|
2021-02-10 13:41:53 +00:00
|
|
|
build_by_default: true,
|
2021-03-12 11:13:54 +00:00
|
|
|
install: true,
|
|
|
|
install_dir: docs_dir,
|
2021-02-10 13:41:53 +00:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if wayland_enabled
|
|
|
|
custom_target('gdk4-wayland-doc',
|
2021-02-21 15:38:39 +00:00
|
|
|
input: [ gdk4wayland_toml, gdk_wayland_gir[0] ],
|
2021-02-10 13:41:53 +00:00
|
|
|
output: 'gdk4-wayland',
|
|
|
|
command: [
|
|
|
|
gidocgen,
|
|
|
|
'generate',
|
2021-02-18 13:38:29 +00:00
|
|
|
'--quiet',
|
2021-02-10 13:41:53 +00:00
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gtk'),
|
|
|
|
'--config=@INPUT0@',
|
|
|
|
'--output-dir=@OUTPUT@',
|
|
|
|
'--no-namespace-dir',
|
|
|
|
'--content-dir=@0@'.format(meson.current_source_dir()),
|
|
|
|
'@INPUT1@',
|
|
|
|
],
|
|
|
|
depends: [ gdk_gir[0] ],
|
2021-02-21 15:38:39 +00:00
|
|
|
depend_files: [ ],
|
2021-02-10 13:41:53 +00:00
|
|
|
build_by_default: true,
|
2021-03-12 11:13:54 +00:00
|
|
|
install: true,
|
|
|
|
install_dir: docs_dir,
|
2021-02-10 13:41:53 +00:00
|
|
|
)
|
|
|
|
endif
|
2019-05-25 16:27:32 +00:00
|
|
|
endif
|