diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/build_all.cmd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/build_all.cmd b/src/build_all.cmd index 7c62be74..8f7e7514 100644 --- a/src/build_all.cmd +++ b/src/build_all.cmd | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | @if /i "%1"=="release" set _C=Release | 6 | @if /i "%1"=="release" set _C=Release |
| 7 | @if not "%1"=="" shift & goto parse_args | 7 | @if not "%1"=="" shift & goto parse_args |
| 8 | 8 | ||
| 9 | @if "%VCToolsVersion%"=="" call :StartDeveloperCommandPrompt | ||
| 10 | |||
| 9 | @echo build %_C% | 11 | @echo build %_C% |
| 10 | 12 | ||
| 11 | :: Initialize required files/folders | 13 | :: Initialize required files/folders |
| @@ -56,5 +58,19 @@ call ext\ext.cmd %_C% || exit /b | |||
| 56 | 58 | ||
| 57 | call test\test.cmd %_C% || exit /b | 59 | call test\test.cmd %_C% || exit /b |
| 58 | 60 | ||
| 61 | goto LExit | ||
| 62 | |||
| 63 | :StartDeveloperCommandPrompt | ||
| 64 | echo Initializing developer command prompt | ||
| 65 | for /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do ( | ||
| 66 | if exist "%%i\Common7\Tools\vsdevcmd.bat" ( | ||
| 67 | call "%%i\Common7\Tools\vsdevcmd.bat" -no_logo | ||
| 68 | exit /b | ||
| 69 | ) | ||
| 70 | ) | ||
| 71 | |||
| 72 | exit /b 2 | ||
| 73 | |||
| 74 | :LExit | ||
| 59 | @popd | 75 | @popd |
| 60 | @endlocal | 76 | @endlocal |
