2006-09-15 23:42:02 +02:00
|
|
|
@echo off
|
|
|
|
SET STARTDIR=%CD%
|
2007-01-16 22:43:19 +01:00
|
|
|
if exist src\tools\msvc\buildenv.bat call src\tools\msvc\buildenv.bat
|
|
|
|
if exist buildenv.bat call buildenv.bat
|
2006-09-15 23:42:02 +02:00
|
|
|
|
|
|
|
perl mkvcbuild.pl
|
|
|
|
if errorlevel 1 goto :eof
|
|
|
|
|
|
|
|
if exist ..\msvc if exist ..\..\..\src cd ..\..\..
|
|
|
|
SET CONFIG=
|
|
|
|
if "%1" == "" set CONFIG=Debug
|
|
|
|
if "%CONFIG%" == "" if "%1" == "DEBUG" set CONFIG=Debug
|
|
|
|
if "%CONFIG%" == "" if "%1" == "RELEASE" set CONFIG=Release
|
|
|
|
if not "%CONFIG%" == "" shift
|
|
|
|
if "%CONFIG%" == "" set CONFIG=Debug
|
|
|
|
|
2007-01-10 04:54:35 +01:00
|
|
|
if "%1" == "" msbuild pgsql.sln /verbosity:detailed /p:Configuration=%CONFIG%
|
2006-09-15 23:42:02 +02:00
|
|
|
if not "%1" == "" vcbuild %1.vcproj %CONFIG%
|
|
|
|
|
|
|
|
cd %STARTDIR%
|