summaryrefslogtreecommitdiff
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-03 22:39:41 +0200
commite9ed8cf198616c557d6125063b335bbd812dda60 (patch)
tree2a63f8a069ee6f2040d192929131ad62bb07698e /docs/markdown/snippets
parentf25070ec089719a607c545c1b44a678c6bbce5c9 (diff)
downloadmeson-intoption.tar.gz
Expose integer options to build option files.intoption
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 000000000..daf660b0d
--- /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)