1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
expand_content_md_files = [
]
toml_data = configuration_data()
toml_data.set('VERSION', meson.project_version())
libpeas_toml = configure_file(
input: 'libpeas.toml.in',
output: 'libpeas.toml',
configuration: toml_data
)
gidocgen = find_program('gi-docgen')
docs_dir = get_option('datadir') / 'doc'
custom_target('libpeas-doc',
input: [libpeas_toml, libpeas_gir[0]],
output: 'libpeas-@0@'.format(api_version),
command: [
gidocgen,
'generate',
'--quiet',
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../libpeas'),
'--config=@INPUT0@',
'--output-dir=@OUTPUT@',
'--no-namespace-dir',
'--content-dir=@0@'.format(meson.current_source_dir()),
'@INPUT1@',
],
depend_files: [ expand_content_md_files ],
build_by_default: true,
install: true,
install_dir: docs_dir,
)
if build_gtk_widgetry == true
libpeas_gtk_toml = configure_file(
input: 'libpeas-gtk.toml.in',
output: 'libpeas-gtk.toml',
configuration: toml_data
)
custom_target('libpeas-gtk-doc',
input: [libpeas_gtk_toml, libpeas_gtk_gir[0], libpeas_gir[0]],
output: 'libpeas-gtk-@0@'.format(api_version),
command: [
gidocgen,
'generate',
'--quiet',
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../libpeas-gtk'),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../libpeas'),
'--config=@INPUT0@',
'--output-dir=@OUTPUT@',
'--no-namespace-dir',
'--content-dir=@0@'.format(meson.current_source_dir()),
'@INPUT1@',
],
depend_files: [ expand_content_md_files ],
build_by_default: true,
install: true,
install_dir: docs_dir,
)
endif
|