aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/deprecated_option.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-10-24 18:45:35 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-10-24 18:45:35 +0300
commit39c268ce0d3c395ce53ef8231f0b6107f6c686bd (patch)
treefff1beb32c2a88d31d0f8ac6cccc2dd177b9db6c /docs/markdown/snippets/deprecated_option.md
parentf64e5cee6bc7ab8c00c31f341afc6043867773d0 (diff)
downloadmeson-39c268ce0d3c395ce53ef8231f0b6107f6c686bd.zip
meson-39c268ce0d3c395ce53ef8231f0b6107f6c686bd.tar.gz
meson-39c268ce0d3c395ce53ef8231f0b6107f6c686bd.tar.bz2
Create release notes page for 0.60.
Diffstat (limited to 'docs/markdown/snippets/deprecated_option.md')
-rw-r--r--docs/markdown/snippets/deprecated_option.md23
1 files changed, 0 insertions, 23 deletions
diff --git a/docs/markdown/snippets/deprecated_option.md b/docs/markdown/snippets/deprecated_option.md
deleted file mode 100644
index 94ee20b..0000000
--- a/docs/markdown/snippets/deprecated_option.md
+++ /dev/null
@@ -1,23 +0,0 @@
-## Deprecated project options
-
-Project options declared in `meson_options.txt` can now be marked as deprecated
-and Meson will warn when user sets a value to it. It is also possible to deprecate
-only some of the choices, and map deprecated values to a new value.
-
-```meson
-# Option fully deprecated, it warns when any value is set.
-option('o1', type: 'boolean', deprecated: true)
-
-# One of the choices is deprecated, it warns only when 'a' is in the list of values.
-option('o2', type: 'array', choices: ['a', 'b'], deprecated: ['a'])
-
-# One of the choices is deprecated, it warns only when 'a' is in the list of values
-# and replace it by 'c'.
-option('o3', type: 'array', choices: ['a', 'b', 'c'], deprecated: {'a': 'c'})
-
-# A boolean option has been replaced by a feature, old true/false values are remapped.
-option('o4', type: 'feature', deprecated: {'true': 'enabled', 'false': 'disabled'})
-
-# A feature option has been replaced by a boolean, enabled/disabled/auto values are remapped.
-option('o5', type: 'boolean', deprecated: {'enabled': 'true', 'disabled': 'false', 'auto': 'false'})
-```