2010-02-08 07:07:45 +08:00
|
|
|
|
|
|
|
if "%WindowsSdkDir%" neq "" goto build
|
2010-05-23 07:48:08 +08:00
|
|
|
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k8on64
|
|
|
|
if exist "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k8
|
2010-02-08 07:07:45 +08:00
|
|
|
echo "Unable to detect suitable environment. Build may not succeed."
|
|
|
|
goto build
|
|
|
|
|
|
|
|
|
|
|
|
:initialize2k8
|
2010-05-23 07:48:08 +08:00
|
|
|
call "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
|
2010-02-08 07:07:45 +08:00
|
|
|
goto build
|
|
|
|
|
2010-02-09 03:42:53 +08:00
|
|
|
:initialize2k8on64
|
2010-05-23 07:48:08 +08:00
|
|
|
call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
|
2010-02-09 03:42:53 +08:00
|
|
|
goto build
|
|
|
|
|
2010-02-08 07:07:45 +08:00
|
|
|
|
|
|
|
:build
|
2010-02-07 12:10:12 +08:00
|
|
|
call build
|
|
|
|
pause
|
2010-02-08 07:07:45 +08:00
|
|
|
goto end
|
|
|
|
|
|
|
|
|
|
|
|
:end
|