2016-09-06 15:31:41 -04:00
|
|
|
:: Check MinGW environment
|
|
|
|
set MinGWPath=
|
|
|
|
call "%ToolsPath%\find-in-path.bat" MinGWPath gcc.exe
|
2016-11-03 03:32:15 -04:00
|
|
|
if "%MinGWPath%"=="" %cecho% error "Please run command in the Qt Command Prompt or add the path to MinGW bin folder to PATH variable." & exit /B 1
|
2016-09-06 15:31:41 -04:00
|
|
|
|
|
|
|
:: Get gcc versions
|
2017-02-27 02:16:48 -05:00
|
|
|
call "%ToolsPath%\get-gcc-version.bat" GCCVersion GCCArchitecture
|
2016-11-03 03:32:15 -04:00
|
|
|
if "%GCCVersion%"=="" %cecho% error "Cannot get gcc version." & exit /B 1
|
2017-02-27 02:16:48 -05:00
|
|
|
if "%GCCArchitecture%"=="" %cecho% error "Cannot get gcc architecture." & exit /B 1
|
2016-09-06 15:31:41 -04:00
|
|
|
|
2017-02-27 02:16:48 -05:00
|
|
|
set BuildLibsPath=%EnvRootPath%\build-libs\gcc-%GCCVersion%\%GCCArchitecture%
|
2016-09-06 15:31:41 -04:00
|
|
|
|
|
|
|
exit /B 0
|