| 1 |
# Option fully deprecated, it warns when any value is set. |
| 2 |
option('o1', type: 'boolean', deprecated: true) |
| 3 |
option('p1', type: 'boolean', deprecated: true) |
| 4 |
option('c1', type: 'boolean', deprecated: true) |
| 5 |
|
| 6 |
# One of the choices is deprecated, it warns only when 'a' is in the list of values. |
| 7 |
option('o2', type: 'array', choices: ['a', 'b'], deprecated: ['a']) |
| 8 |
option('p2', type: 'array', choices: ['a', 'b'], deprecated: ['a']) |
| 9 |
option('c2', type: 'array', choices: ['a', 'b'], deprecated: ['a']) |
| 10 |
|
| 11 |
# One of the choices is deprecated, it warns only when 'a' is in the list of values |
| 12 |
# and replace it by 'c'. |
| 13 |
option('o3', type: 'array', choices: ['a', 'b', 'c'], deprecated: {'a': 'c'}) |
| 14 |
option('p3', type: 'array', choices: ['a', 'b', 'c'], deprecated: {'a': 'c'}) |
| 15 |
option('c3', type: 'array', choices: ['a', 'b', 'c'], deprecated: {'a': 'c'}) |
| 16 |
|
| 17 |
# A boolean option has been replaced by a feature, old true/false values are remapped. |
| 18 |
option('o4', type: 'feature', deprecated: {'true': 'enabled', 'false': 'disabled'}) |
| 19 |
option('p4', type: 'feature', deprecated: {'true': 'enabled', 'false': 'disabled'}) |
| 20 |
option('c4', type: 'feature', deprecated: {'true': 'enabled', 'false': 'disabled'}) |
| 21 |
|
| 22 |
# A feature option has been replaced by a boolean, enabled/disabled/auto values are remapped. |
| 23 |
option('o5', type: 'boolean', deprecated: {'enabled': 'true', 'disabled': 'false', 'auto': 'false'}) |
| 24 |
option('p5', type: 'boolean', deprecated: {'enabled': 'true', 'disabled': 'false', 'auto': 'false'}) |
| 25 |
option('c5', type: 'boolean', deprecated: {'enabled': 'true', 'disabled': 'false', 'auto': 'false'}) |
| 26 |
|
| 27 |
# A boolean option has been replaced by a feature with another name, old true/false values |
| 28 |
# are accepted by the new option for backward compatibility. |
| 29 |
option('o6', type: 'boolean', value: true, deprecated: 'o7') |
| 30 |
option('p6', type: 'boolean', value: true, deprecated: 'o7') |
| 31 |
option('c6', type: 'boolean', value: true, deprecated: 'o7') |
| 32 |
|
| 33 |
option('o7', type: 'feature', value: 'enabled', deprecated: {'true': 'enabled', 'false': 'disabled'}) |
| 34 |
|
| 35 |
# A project option is replaced by a module option |
| 36 |
option('o8', type: 'string', value: '', deprecated: 'python.platlibdir') |
| 37 |
option('p8', type: 'string', value: '', deprecated: 'python.platlibdir') |
| 38 |
option('c8', type: 'string', value: '', deprecated: 'python.platlibdir') |