2005-09-15 12:02:46 +00:00
|
|
|
@ECHO OFF
|
|
|
|
|
|
|
|
:: Toolkit 2003
|
|
|
|
if defined VCToolkitInstallDir (
|
2005-09-15 14:33:01 +00:00
|
|
|
if exist "%VCToolkitInstallDir%\vcvars32.bat" (
|
2005-09-15 12:02:46 +00:00
|
|
|
echo -
|
|
|
|
echo - VC 7.1 Toolkit found.
|
|
|
|
echo -
|
|
|
|
call "%VCToolkitInstallDir%\vcvars32.bat"
|
|
|
|
goto STARTCOMPILING
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
:: Viual C++
|
|
|
|
if defined VCINSTALLDIR (
|
|
|
|
if exist "%VCINSTALLDIR%\vcvarsall.bat" (
|
|
|
|
echo -
|
2005-09-15 14:33:01 +00:00
|
|
|
echo - Visual C++ found.
|
2005-09-15 12:02:46 +00:00
|
|
|
echo -
|
2005-09-15 14:33:01 +00:00
|
|
|
call "%VCINSTALLDIR%\vcvarsall.bat" x86
|
2005-09-15 13:46:57 +00:00
|
|
|
set MSVCDir=%VCINSTALLDIR%
|
2005-09-15 12:02:46 +00:00
|
|
|
goto STARTCOMPILING
|
|
|
|
)
|
|
|
|
if exist "%VCINSTALLDIR%\vcvars32.bat" (
|
|
|
|
echo -
|
|
|
|
echo - Visual C++ found.
|
|
|
|
echo -
|
|
|
|
call "%VCINSTALLDIR%\vcvars32.bat"
|
|
|
|
goto STARTCOMPILING
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
echo -
|
|
|
|
echo - No Visual C++ found, please set the enviroment variable
|
|
|
|
echo -
|
|
|
|
echo - VCToolkitInstallDir or VCINSTALLDIR
|
|
|
|
echo -
|
|
|
|
echo - to your Visual C++ installation folder.
|
|
|
|
echo -
|
|
|
|
echo - Or call the vcvars32.bat/vcvarsall.bat file.
|
|
|
|
echo -
|
|
|
|
|
|
|
|
goto ERROR
|
|
|
|
|
|
|
|
|
|
|
|
:STARTCOMPILING
|
|
|
|
|
|
|
|
:: loki buid process
|
|
|
|
|
|
|
|
cd src
|
|
|
|
call make.msvc.bat
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd examples
|
|
|
|
call make.msvc.bat
|
|
|
|
cd ..
|
|
|
|
|
2005-09-15 13:46:57 +00:00
|
|
|
cd test
|
2005-09-15 12:02:46 +00:00
|
|
|
call make.msvc.bat
|
2005-09-15 13:46:57 +00:00
|
|
|
cd ..
|
2005-09-15 12:02:46 +00:00
|
|
|
|
2005-09-15 13:46:57 +00:00
|
|
|
cd tools
|
2005-09-15 12:02:46 +00:00
|
|
|
call make.msvc.bat
|
2005-09-15 13:46:57 +00:00
|
|
|
cd ..
|
2005-09-15 12:02:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
goto LEAVE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:ERROR
|
|
|
|
echo -
|
|
|
|
echo -
|
|
|
|
echo - An error occured. Compiling aborted.
|
|
|
|
echo -
|
|
|
|
pause
|
|
|
|
|
|
|
|
:LEAVE
|