提交 4fc6e2fd 编写于 作者: M Magnus Hagander

Teach MSVC build system about building foreign data wrappers.

Should fix recent buildfarm breakage.
上级 6d798718
......@@ -3,7 +3,7 @@ package Mkvcbuild;
#
# 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 Win32;
......@@ -312,6 +312,15 @@ sub mkvcbuild
$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 =~ s{\\s*[\r\n]+}{}mg;
$mf =~ m{PROGRAMS\s*=\s*(.*)$}m || die 'Could not match in bin\scripts\Makefile' . "\n";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册