diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2022-07-03 17:39:59 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-07-03 17:39:59 +0300 |
| commit | 9c6dab2cfd310ef2d840a2a7a479ce6b9e563b1d (patch) | |
| tree | 983bed70068da2fb12c7d5ecafb0bb31e2e99720 /docs/markdown/snippets/deprecated_for_option.md | |
| parent | 51dad83d465363b9de18885d0047897f8a211e53 (diff) | |
| download | meson-9c6dab2cfd310ef2d840a2a7a479ce6b9e563b1d.tar.gz | |
Finalize the release.
Diffstat (limited to 'docs/markdown/snippets/deprecated_for_option.md')
| -rw-r--r-- | docs/markdown/snippets/deprecated_for_option.md | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/docs/markdown/snippets/deprecated_for_option.md b/docs/markdown/snippets/deprecated_for_option.md deleted file mode 100644 index c0a012c9a..000000000 --- a/docs/markdown/snippets/deprecated_for_option.md +++ /dev/null @@ -1,16 +0,0 @@ -## Deprecate an option and replace it with a new one - -The `deprecated` keyword argument can now take the name of a new option -that replace this option. In that case, setting a value on the deprecated option -will set the value on both the old and new names, assuming they accept the same -values. - -```meson -# A boolean option has been replaced by a feature with another name, old true/false values -# are accepted by the new option for backward compatibility. -option('o1', type: 'boolean', value: 'true', deprecated: 'o2') -option('o2', type: 'feature', value: 'enabled', deprecated: {'true': 'enabled', 'false': 'disabled'}) - -# A project option is replaced by a module option -option('o3', type: 'string', value: '', deprecated: 'python.platlibdir') -``` |
