@ECHO OFF

REM  
REM  Copyright (C) 2004, 2005 Pingtel Corp.
REM  
REM

ECHO ??? Setting MSVC Vars...
IF NOT "%SIPXPHONE_MSVC_BASE%" == "" GOTO SET_MSVC_VARS
SET SIPXPHONE_MSVC_BASE=C:\Program Files\Microsoft Visual Studio .NET 2003\VC7

:SET_MSVC_VARS
call "%SIPXPHONE_MSVC_BASE%\bin\VCVARS32.bat"

:BUILD_PROJECTS
ECHO ???? Building Project...
call _build_cpp_project sipXtapi %1
IF NOT "%ERRORLEVEL%"=="0" GOTO ERROR_EXIT

GOTO DONE

:ERROR_EXIT
ECHO .
ECHO *** %0 Error detected, aborting ... ***
ECHO .
exit /b 1

:DONE
exit /b 0
