waftools/features: add forgotten enable variants for enabled features

This brings enabled features on the same level as disabled and
auto-detected features by having both alternatives available.

Looking at the commit message of 652895abdc
this seems to have been the intent from the start, but this specific
definition was missing from the option creation in Features.
This commit is contained in:
Jan Ekström 2021-09-19 21:53:57 +03:00 committed by sfan5
parent 560e6c8709
commit 7b9e024f37
2 changed files with 5 additions and 4 deletions

View File

@ -85,10 +85,10 @@ detect it, the file `build/config.log` may contain information about the
reasons for the failure.
NOTE: To avoid cluttering the output with unreadable spam, `--help` only shows
one of the two switches for each option. If the option is autodetected by
default, the `--disable-***` switch is printed; if the option is disabled by
default, the `--enable-***` switch is printed. Either way, you can use
`--enable-***` or `--disable-**` regardless of what is printed by `--help`.
one of the two switches for each option. If the option is autodetected or
enabled by default, the `--disable-***` switch is printed; if the option is
disabled by default, the `--enable-***` switch is printed. Either way, you can
use `--enable-***` or `--disable-**` regardless of what is printed by `--help`.
To build the software you can use `./waf build`: the result of the compilation
will be located in `build/mpv`. You can use `./waf install` to install mpv

View File

@ -29,6 +29,7 @@ class Feature(object):
],
'enable': [
{'state': 'disable', 'action': 'store_false', 'default': True},
{'state': 'enable', 'action': 'store_true', 'default': True},
],
}[self.behaviour()]