summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2021-02-20 15:26:18 -0500
committerBradley Sepos <[email protected]>2021-02-20 16:22:34 -0500
commit5e1473c632322dd7d3ce76ae6dae07d59f6af92e (patch)
treedac265e0f3b25e2ed4152ec02a3bab2145abd79c /make
parent336246294acf0ecb601536ba3cb9328a4e470a21 (diff)
make: Simplify feature check cosmetics in configure.py.
Diffstat (limited to 'make')
-rw-r--r--make/configure.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/make/configure.py b/make/configure.py
index 4a16a95cc..87118fcbe 100644
--- a/make/configure.py
+++ b/make/configure.py
@@ -1729,22 +1729,19 @@ try:
# Allow GTK mingw only on mingw
options.enable_gtk_mingw = IfHost(options.enable_gtk_mingw, '*-*-mingw*',
none=False).value
- # Disable MediaFoundation on unsupported platforms
- options.enable_mf = IfHost(options.enable_mf, 'aarch64-w64-mingw32',
- none=False).value
- # Disable NVENC on unsupported platforms
- options.enable_nvenc = IfHost(options.enable_nvenc, '*-*-linux*',
- 'x86_64-w64-mingw32', none=False).value
# NUMA is linux only and only needed with x265
options.enable_numa = (IfHost(options.enable_numa, '*-*-linux*',
none=False).value
and options.enable_x265)
- # Disable QSV on unsupported platforms
+ # Only allow these features on supported platforms
+ options.enable_mf = IfHost(options.enable_mf, 'aarch64-w64-mingw32',
+ none=False).value
+ options.enable_nvenc = IfHost(options.enable_nvenc, '*-*-linux*',
+ 'x86_64-w64-mingw32', none=False).value
options.enable_qsv = IfHost(options.enable_qsv, '*-*-linux*', '*-*-freebsd*',
'x86_64-w64-mingw32', none=False).value
- # Disable VCE on unsupported platforms
- options.enable_vce = IfHost(options.enable_vce, '*-*-linux*', 'x86_64-w64-mingw32',
- none=False).value
+ options.enable_vce = IfHost(options.enable_vce, '*-*-linux*',
+ 'x86_64-w64-mingw32', none=False).value
#####################################
## Additional library and tool checks