diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-11-01 15:30:01 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-11-01 15:30:01 -0500 |
| commit | 1499daf155d1ffa048fb7f27cb739ea268653862 (patch) | |
| tree | fb35834719643894119edee58878bc3280003f89 /src | |
| parent | 4ca1a77e321c48078a0060ac116db4e755dff417 (diff) | |
| download | wix-1499daf155d1ffa048fb7f27cb739ea268653862.tar.gz wix-1499daf155d1ffa048fb7f27cb739ea268653862.tar.bz2 wix-1499daf155d1ffa048fb7f27cb739ea268653862.zip | |
Add ability to skip running vsdevcmd.bat.
Diffstat (limited to 'src')
| -rw-r--r-- | src/build_all.cmd | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/build_all.cmd b/src/build_all.cmd index 8f7e7514..e631ed52 100644 --- a/src/build_all.cmd +++ b/src/build_all.cmd | |||
| @@ -6,7 +6,7 @@ | |||
| 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 | 9 | @if "%VCToolsVersion%"=="" call :StartDeveloperCommandPrompt || exit /b |
| 10 | 10 | ||
| 11 | @echo build %_C% | 11 | @echo build %_C% |
| 12 | 12 | ||
| @@ -61,14 +61,27 @@ call test\test.cmd %_C% || exit /b | |||
| 61 | goto LExit | 61 | goto LExit |
| 62 | 62 | ||
| 63 | :StartDeveloperCommandPrompt | 63 | :StartDeveloperCommandPrompt |
| 64 | if not "%WixSkipVsDevCmd%"=="" ( | ||
| 65 | echo Skipping initializing developer command prompt | ||
| 66 | exit /b | ||
| 67 | ) | ||
| 68 | |||
| 64 | echo Initializing developer command prompt | 69 | echo Initializing developer command prompt |
| 70 | |||
| 71 | if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" ( | ||
| 72 | "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
| 73 | exit /b 2 | ||
| 74 | ) | ||
| 75 | |||
| 65 | for /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do ( | 76 | 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" ( | 77 | if exist "%%i\Common7\Tools\vsdevcmd.bat" ( |
| 67 | call "%%i\Common7\Tools\vsdevcmd.bat" -no_logo | 78 | call "%%i\Common7\Tools\vsdevcmd.bat" -no_logo |
| 68 | exit /b | 79 | exit /b |
| 69 | ) | 80 | ) |
| 81 | echo developer command prompt not found in %%i | ||
| 70 | ) | 82 | ) |
| 71 | 83 | ||
| 84 | echo No versions of developer command prompt found | ||
| 72 | exit /b 2 | 85 | exit /b 2 |
| 73 | 86 | ||
| 74 | :LExit | 87 | :LExit |
