Commit 4fc6e2fd authored by Magnus Hagander's avatar Magnus Hagander

Teach MSVC build system about building foreign data wrappers.

Should fix recent buildfarm breakage.
parent 6d798718
...@@ -3,7 +3,7 @@ package Mkvcbuild; ...@@ -3,7 +3,7 @@ package Mkvcbuild;
# #
# Package that generates build files for msvc build # Package that generates build files for msvc build
# #
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.34 2008/12/02 10:39:31 mha Exp $ # $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.35 2008/12/20 22:04:02 mha Exp $
# #
use Carp; use Carp;
use Win32; use Win32;
...@@ -312,6 +312,15 @@ sub mkvcbuild ...@@ -312,6 +312,15 @@ sub mkvcbuild
$p->AddReference($postgres); $p->AddReference($postgres);
} }
$mf = Project::read_file('src\backend\foreign\Makefile');
$mf =~ s{\\s*[\r\n]+}{}mg;
$mf =~ m{FDW\s*=\s*(.*)$}m || die 'Could not match in foreign makefile' . "\n";
foreach my $foreign (split /\s+/,$1)
{
my $proj = $solution->AddProject($foreign . '_fdw', 'dll', 'foreign', 'src\backend\foreign\\' . $foreign);
$proj->AddReference($postgres);
}
$mf = Project::read_file('src\bin\scripts\Makefile'); $mf = Project::read_file('src\bin\scripts\Makefile');
$mf =~ s{\\s*[\r\n]+}{}mg; $mf =~ s{\\s*[\r\n]+}{}mg;
$mf =~ m{PROGRAMS\s*=\s*(.*)$}m || die 'Could not match in bin\scripts\Makefile' . "\n"; $mf =~ m{PROGRAMS\s*=\s*(.*)$}m || die 'Could not match in bin\scripts\Makefile' . "\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment