meson: improve summary() printout
authorTim-Philipp Müller <tim@centricular.com>
Fri, 13 Mar 2020 12:29:12 +0000 (12:29 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 13 Mar 2020 12:29:12 +0000 (12:29 +0000)
commit5f5b9b1208b3dfcce50c415ad0272d816ea4e308
treedf69206a0167391e9481590216fe9bf81bbcf29d
parent86aa90fde5ef6e9aaa458fdcfb04a2ba28191582
meson: improve summary() printout

Pass bool_yn kwarg to summary() to make it
print boolean arguments as nice coloured YES/NO
instead of true/false.

We can also pass multiple arguments like a bool
and a disabled_reason string. In meson 0.54 these
can be printed on one line if we set the line_sep
kwarg. In meson 0.53 these will always be printed
on two lines (and it will warn about the line_sep
arg), so only pass two args if docs are disabled
and otherwise just pass one arg, so we don't end
up with an ugly empty line with meson 0.53.
meson.build