diff options
Diffstat (limited to 'configure.bat')
-rw-r--r-- | configure.bat | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/configure.bat b/configure.bat index 5c01890116..769cddbd1b 100644 --- a/configure.bat +++ b/configure.bat @@ -28,10 +28,26 @@ ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @echo off +setlocal ENABLEEXTENSIONS +set ARGS=%* set QTSRC=%~dp0 set QTDIR=%CD% -if not exist %QTSRC%.gitignore goto sconf +:doargs + if "%~1" == "" goto doneargs + + if "%~1" == "/?" goto help + if "%~1" == "-?" goto help + if /i "%~1" == "/h" goto help + if /i "%~1" == "-h" goto help + if /i "%~1" == "/help" goto help + if /i "%~1" == "-help" goto help + if /i "%~1" == "--help" goto help + + shift + goto doargs +:doneargs + echo Please wait while bootstrapping configure ... for %%C in (clang-cl.exe cl.exe icl.exe g++.exe perl.exe jom.exe) do set %%C=%%~$PATH:C @@ -114,9 +130,10 @@ if errorlevel 1 (cd ..\.. & exit /b 1) cd ..\.. :conf -configure.exe -srcdir %QTSRC% %* +configure.exe -srcdir %QTSRC% %ARGS% goto exit -:sconf -%QTSRC%configure.exe %* +:help +type %QTSRC%config_help.txt + :exit |