summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2021-09-19 21:53:57 +0300
committersfan5 <sfan5@live.de>2021-09-20 00:43:12 +0200
commit7b9e024f3713591db317b11b898eb6f132353736 (patch)
tree498f04a21fc84ee9e64461a5fcd68e66948fcf34
parent560e6c8709811038dfcd3ff8b789670a18649d17 (diff)
downloadmpv-7b9e024f3713591db317b11b898eb6f132353736.tar.bz2
mpv-7b9e024f3713591db317b11b898eb6f132353736.tar.xz
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 652895abdce4bc1ff2f00c7f21c0d0d722680806 this seems to have been the intent from the start, but this specific definition was missing from the option creation in Features.
-rw-r--r--README.md8
-rw-r--r--waftools/features.py1
2 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 83ec06ede3..7bbf6361df 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/waftools/features.py b/waftools/features.py
index 74c2483a48..abd29fc1fa 100644
--- a/waftools/features.py
+++ b/waftools/features.py
@@ -29,6 +29,7 @@ class Feature(object):
],
'enable': [
{'state': 'disable', 'action': 'store_false', 'default': True},
+ {'state': 'enable', 'action': 'store_true', 'default': True},
],
}[self.behaviour()]