Skip to content

Commit

Permalink
Support VC++2010
Browse files Browse the repository at this point in the history
  • Loading branch information
danielearwicker committed Sep 26, 2011
1 parent 7e7d332 commit 1c3801b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
@echo off
if "empty%VS90COMNTOOLS%"=="empty" goto :NOVS
if "empty%VCINSTALLDIR%"=="empty" goto :VSVARS
if "empty%VS100COMNTOOLS%"=="empty" goto :TRY2008
if "empty%VCINSTALLDIR%"=="empty" goto :VSVARS2010
goto :READY

:VSVARS
:VSVARS2008
call "%VS90COMNTOOLS%vsvars32.bat"
goto :READY

:READY
:VSVARS2010
call "%VS100COMNTOOLS%vsvars32.bat"
goto :READY

make
:TRY2008
if "empty%VS90COMNTOOLS%"=="empty" goto :GIVEUP
if "empty%VCINSTALLDIR%"=="empty" goto :VSVARS2008
goto :READY

:READY
make
goto :END

:NOVS
echo Could not find VS90COMNTOOLS variable - install Visual Studio 2008
:GIVEUP
echo Could not find VS90COMNTOOLS or VS100COMNTOOLS variables
echo - install Visual Studio 2008 or 2010
:END

0 comments on commit 1c3801b

Please sign in to comment.