@echo off
setlocal
@rem Root of Visual Studio common files.@if "%VSINSTALLDIR%"=="" goto Usage
@if "%VCINSTALLDIR%"=="" set VCINSTALLDIR=%VSINSTALLDIR%@rem
@rem Root of Visual Studio ide installed files.
@rem
@set DevEnvDir=%VSINSTALLDIR%@rem
@rem Root of Visual C++ installed files.
@rem
@set MSVCDir=%VCINSTALLDIR%VC7@rem
@echo Setting environment for using Microsoft Visual Studio .NET 2003 tools.
@echo (If you have another version of Visual Studio or Visual C++ installed and wish
@echo to use its tools from the command line, run vcvars32.bat for that version.)
@rem@REM %VCINSTALLDIR%Common7Tools dir is added only for real setup.@set PATH=%DevEnvDir%;%MSVCDir%BIN;%VCINSTALLDIR%Common7Tools;%VCINSTALLDIR%Common7Toolsbinprerelease;%VCINSTALLDIR%Common7Toolsbin;%FrameworkSDKDir%bin;%FrameworkDir%%FrameworkVersion%;%PATH%;
@set INCLUDE=%MSVCDir%ATLMFCINCLUDE;%MSVCDir%INCLUDE;%MSVCDir%PlatformSDKincludeprerelease;%MSVCDir%PlatformSDKinclude;%FrameworkSDKDir%include;%INCLUDE%
@set LIB=%MSVCDir%ATLMFCLIB;%MSVCDir%LIB;%MSVCDir%PlatformSDKlibprerelease;%MSVCDir%PlatformSDKlib;%FrameworkSDKDir%lib;%LIB%@goto end:Usage@echo. VSINSTALLDIR variable is not set.
@echo.
@echo SYNTAX: %0@goto end:end@echo offecho start build
echo.@remecho.
echo Building "API Unicode Release MinDependency|win32" ... ...
devenv top.sln /rebuild release /project APIAPI.vcproj /projectconfig "Unicode Release MinDependency|win32"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORecho.
echo Building "seg release|win32" ... ...
devenv top.sln /rebuild release /project segseg.vcproj /projectconfig "release|win32"
IF %ERRORLEVEL% NEQ 0 GOTO ERROR@remecho.
echo Succeeded!
GOTO END:ERROR
echo.
ECHO Failed!
GOTO END:END
endlocal
build6.bat
@echo off
setlocal
rem
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
rem
set VcOsDir=WIN95
if "%OS%" == "Windows_NT" set VcOsDir=WINNTrem
echo Setting environment for using Microsoft Visual C++ tools.
remif "%OS%" == "Windows_NT" set PATH=%MSDevDir%BIN;%MSVCDir%BIN;%VSCommonDir%TOOLS%VcOsDir%;%VSCommonDir%TOOLS;%PATH%
if "%OS%" == "" set PATH="%MSDevDir%BIN";"%MSVCDir%BIN";"%VSCommonDir%TOOLS%VcOsDir%";"%VSCommonDir%TOOLS";"%windir%SYSTEM";"%PATH%"
set INCLUDE=%MSVCDir%ATLINCLUDE;%MSVCDir%INCLUDE;%MSVCDir%MFCINCLUDE;%INCLUDE%
set LIB=%MSVCDir%LIB;%MSVCDir%MFCLIB;%LIB%set VcOsDir=
set VSCommonDir=@echo offecho start build
echo.echo.
echo Building "Adapter - Win32 Release" ... ...
msdev AdapterAdapter.dsp /MAKE "Adapter - Win32 Release" /REBUILD /NORECURSE
echo.
IF %ERRORLEVEL% NEQ 0 GOTO ERRORecho.
echo Building "Ext - Win32 Release MinDependency" ... ...
msdev ExtExt.dsp /MAKE "Ext - Win32 Release MinDependency" /REBUILD /NORECURSE
echo.
IF %ERRORLEVEL% NEQ 0 GOTO ERRORecho.
echo Succeeded!
GOTO END:ERROR
echo.
ECHO Failed!
GOTO END:END
endlocal