diff options
author | Wouter Huysentruit <wouter.huysentruit@dzine.be> | 2013-01-15 15:40:02 +0100 |
---|---|---|
committer | Rafael Roquetto <rafael.roquetto@kdab.com> | 2013-01-15 21:08:58 +0100 |
commit | ba0c59c4b92a80687a849527ad00357b36e19844 (patch) | |
tree | ad9cc1860e494721c4914e3542a339c51c6a3942 | |
parent | 5ea6ebf4fbe909724a587d32f199c8b34d21ac60 (diff) |
Add -no-wmf to configure.bat
This option is needed in case you're compiling on Windows Vista
or later and want to build without the WMF backend (and use the
DirectShow backend instead)
Change-Id: I7b0d9064e3582e5e9f75f10cb84f3bf5b55259a5
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
-rw-r--r-- | configure.bat | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.bat b/configure.bat index aaf7613032..06ed286ac1 100644 --- a/configure.bat +++ b/configure.bat @@ -67,6 +67,7 @@ set QT_PATH= set QMAKE_CACHE=%BUILD_PATH%\.qmake.cache
set PLATFORM_CONFIG=
set NFC_SYMBIAN=auto
+set USE_WMF_IF_AVAILABLE=yes
REM By default, all modules are requested. Reset this later if -modules is supplied
set MODULE_BEARER_REQUESTED=yes
@@ -121,6 +122,7 @@ if "%1" == "-symbian-unfrozen" goto unfrozenTag if "%1" == "-staticconfig" goto staticConfigTag
if "%1" == "-languages" goto languagesTag
if "%1" == "-no-nfc-symbian" goto noNfcSymbianTag
+if "%1" == "-no-wmf" goto noWmfTag
echo Unknown option: "%1"
goto usage
@@ -166,7 +168,7 @@ echo Usage: configure.bat [-prefix (dir)] [headerdir (dir)] [libdir (dir)] echo -languages ........ Languages/translations to be installed (e.g.: ar de ko)
echo (default is empty)
echo -no-nfc-symbian ... Disables the NFC Symbian backend.
-
+ echo -no-wmf ........... Disables the Windows Media Foundation backend.
if exist "%PROJECT_CONFIG%" del %PROJECT_CONFIG%
goto exitTag
@@ -182,6 +184,11 @@ shift set NFC_SYMBIAN=no
goto cmdline_parsing
+:noWmfTag
+shift
+set USE_WMF_IF_AVAILABLE=no
+goto cmdline_parsing
+
:languagesTag
shift
:: %1 can have leading/trailing quotes, so we can't use if "%1" == ""
@@ -776,7 +783,12 @@ call :compileTest DirectShow directshow call :compileTest WindowsMediaSDK wmsdk
call :compileTest WindowMediaPlayer wmp
call :compileTest EnhancedVideoRenderer evr
-call :compileTest WindowsMediaFoundation wmf
+if "%USE_WMF_IF_AVAILABLE%" == "yes" (
+ call :compileTest WindowsMediaFoundation wmf
+) else (
+ echo Not using Windows Media Foundation
+ echo wmf_enabled = no >> %PROJECT_CONFIG%
+)
:noTests
|