2 # -*-perl-*- hey - emacs - this is a perl file
9 chdir("../../..") if (-d
"../msvc" && -d
"../../../src");
13 use lib
"src/tools/msvc";
19 # buildenv.pl is for specifying the build environment settings
20 # it should contain lines like:
21 # $ENV{PATH} = "c:/path/to/bison/bin;$ENV{PATH}";
23 if ( -e
"src/tools/msvc/buildenv.pl")
25 require "src/tools/msvc/buildenv.pl";
27 elsif (-e
"./buildenv.pl" )
29 require "./buildenv.pl";
37 Mkvcbuild
::mkvcbuild
($config);
39 # check what sort of build we are doing
41 my $bconf = $ENV{CONFIG
} || "Release";
42 my $buildwhat = $ARGV[1] || "";
43 if ($ARGV[0] eq 'DEBUG')
47 elsif ($ARGV[0] ne "RELEASE")
49 $buildwhat = $ARGV[0] || "";
56 system("vcbuild $buildwhat.vcproj $bconf");
60 system("msbuild pgsql.sln /verbosity:detailed /p:Configuration=$bconf");