Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Windows: try to set up vc environment when not running from vs comman…
Browse files Browse the repository at this point in the history
…d prompt
  • Loading branch information
piscisaureus committed Jan 31, 2012
1 parent 98c0498 commit 7b83b99
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion vcbuild.bat
Expand Up @@ -64,9 +64,21 @@ echo Project files generated.
@rem Skip project generation if requested.
if defined nobuild goto run

if not defined VCINSTALLDIR echo Build skipped. To build, this file needs to run from VS cmd prompt.& goto run
@rem If not running in the VS build env, try to start it. If that fails, bail
@rem out.
if defined VCINSTALLDIR goto msbuild-found
if not defined VS100COMNTOOLS goto msbuild-not-found
if not exist "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat" goto msbuild-not-found
call "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat"
if not defined VCINSTALLDIR goto msbuild-not-found
goto msbuild-found

:msbuild-not-found
echo Build skipped. To build, this file needs to run from VS cmd prompt.
goto run

@rem Build the sln with msbuild.
:msbuild-found
msbuild uv.sln /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
if errorlevel 1 goto exit

Expand Down

0 comments on commit 7b83b99

Please sign in to comment.