meson: print docs backend as part of the summary
Our documentation can be built with either Asciidoc or Asciidoctor as backend. When Meson is configured to build documentation, then it will automatically detect which of these tools is available and use them. It's not obvious to the user though which of these backends is used unless the user explicitly asks for one backend via `-Ddocs_backend=`. Improve the status quo by printing the docs backend as part of the "backends" summary. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Sep 11, 2025 at 11:16 UTC
b64579dff989f36343bdbb3e1d6481ee4a3f0876
1 file changed
+3
meson.build
+3
@@ -2101,6 +2101,8 @@ subdir('bin-wrappers')
2101
if get_option('docs') != []
2102
doc_targets = []
2103
subdir('Documentation')
2104
+else
2105
+ docs_backend = 'none'
2106
endif
2107
2108
subdir('contrib')
@@ -2249,6 +2251,7 @@ summary({
2251
2252
summary({
2253
'csprng': csprng_backend,
2254
+ 'docs': docs_backend,
2255
'https': https_backend,
2256
'sha1': sha1_backend,
2257
'sha1_unsafe': sha1_unsafe_backend,