aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-02-03 21:30:44 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-02-07 22:10:04 +0200
commit0204895143d4aacf143be952f962dc47e415c187 (patch)
tree32da3b7f923358b8416f554317adb6dc20041661 /docs/markdown/snippets
parent20c1cb7d02f77ada1446b592d8915ec4945994e3 (diff)
downloadmeson-0204895143d4aacf143be952f962dc47e415c187.zip
meson-0204895143d4aacf143be952f962dc47e415c187.tar.gz
meson-0204895143d4aacf143be952f962dc47e415c187.tar.bz2
Expose integer options to build option files.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/intopt.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/snippets/intopt.md b/docs/markdown/snippets/intopt.md
new file mode 100644
index 0000000..daf660b
--- /dev/null
+++ b/docs/markdown/snippets/intopt.md
@@ -0,0 +1,6 @@
+## Integer options
+
+There is a new integer option type with optional minimum and maximum
+values. It can be specified like this in the `meson_options.txt` file:
+
+ option('integer_option', type : 'integer', min : 0, max : 5, value : 3)