summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-12-16 19:35:34 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-16 19:35:34 +0200
commit83c12edde9b37f46680209123cf301442706a7e7 (patch)
treeacf22ad23ecca33f842893fc161193220ef96a48 /docs/markdown/snippets
parentc208e81e1a47b54a1efb536e164b06275ddd7cd9 (diff)
downloadmeson-endmessage.tar.gz
Add end_message to print status messages on successfull exit.endmessage
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/end_messages.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/markdown/snippets/end_messages.md b/docs/markdown/snippets/end_messages.md
new file mode 100644
index 000000000..0b04c67f8
--- /dev/null
+++ b/docs/markdown/snippets/end_messages.md
@@ -0,0 +1,20 @@
+## New end_messages method
+
+The new `end_messages` function allows you to create status messages
+that will be printed at the end of the Meson run rather than
+immediately. For example the following setup:
+
+```meson
+end_message('A short name:', 'value #1')
+end_message('A bit longer name:', 'value #2')
+```
+
+Will cause the following text to be printed as the last thing just
+before Meson exits.
+
+```
+Main project
+
+A short name: value #1
+A bit longer name: value #2
+```