meson: adds summary() to auto features

This commit is contained in:
Niklāvs Koļesņikovs 2021-07-03 15:57:06 +03:00
parent 6ef84a1309
commit d8365fe33e
No known key found for this signature in database
GPG key ID: 8A45FF71F7C7210A
2 changed files with 13 additions and 0 deletions

View file

@ -6,12 +6,20 @@ python_doc = pymod.find_installation(
modules: ['sphinx', 'sphinx_rtd_theme', 'breathe', 'sphinx.ext.graphviz'],
required: get_option('doc')
)
summary({'Python 3 Sphinx related modules': python_doc.found()},
bool_yn: true,
section: 'For documentation'
)
python_gir = pymod.find_installation(
'python3',
modules: ['lxml'],
required: get_option('introspection')
)
summary({'Python 3 lxml module': python_gir.found()},
bool_yn: true,
section: 'For introspection'
)
if get_option('doc').enabled() or get_option('introspection').enabled()
doxygen_p = find_program('doxygen', version: '>= 1.8.0', required: true)
@ -20,10 +28,14 @@ elif get_option('doc').auto() or get_option('introspection').auto()
else
doxygen_p = disabler()
endif
summary({'Doxygen': doxygen_p.found()}, bool_yn: true, section: 'For introspection')
summary({'Doxygen': doxygen_p.found()}, bool_yn: true, section: 'For documentation')
sphinx_p = find_program('sphinx-build',
version: '>= 2.1.0', required: get_option('doc'))
summary({'sphinx-build': sphinx_p.found()}, bool_yn: true, section: 'For documentation')
gir_p = find_program('g-ir-scanner', required: get_option('introspection'))
summary({'g-ir-scanner': gir_p.found()}, bool_yn: true, section: 'For introspection')
build_doc = python_doc.found() and doxygen_p.found() and sphinx_p.found()
build_gir = python_gir.found() and doxygen_p.found() and gir_p.found()

View file

@ -1,4 +1,5 @@
systemd = dependency('systemd', required: get_option('systemd'))
summary({'systemd conf data': systemd.found()}, bool_yn: true)
if systemd.found()
systemd_config = configuration_data()