forked from danielearwicker/cppjvm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e7d332
commit 1c3801b
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |