Commit ace2b067 authored by Magnus Hagander's avatar Magnus Hagander

Fix MSVC build for new ways to pull in keywords.c and kwlookup.c.

parent 4022f94c
...@@ -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.37 2009/02/25 17:42:19 mha Exp $ # $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.38 2009/03/08 19:13:38 mha Exp $
# #
use Carp; use Carp;
use Win32; use Win32;
...@@ -211,16 +211,22 @@ sub mkvcbuild ...@@ -211,16 +211,22 @@ sub mkvcbuild
$pgdump->AddFile('src\bin\pg_dump\pg_dump.c'); $pgdump->AddFile('src\bin\pg_dump\pg_dump.c');
$pgdump->AddFile('src\bin\pg_dump\common.c'); $pgdump->AddFile('src\bin\pg_dump\common.c');
$pgdump->AddFile('src\bin\pg_dump\pg_dump_sort.c'); $pgdump->AddFile('src\bin\pg_dump\pg_dump_sort.c');
$pgdump->AddFile('src\bin\pg_dump\keywords.c');
$pgdump->AddFile('src\backend\parser\kwlookup.c');
my $pgdumpall = AddSimpleFrontend('pg_dump', 1); my $pgdumpall = AddSimpleFrontend('pg_dump', 1);
$pgdumpall->{name} = 'pg_dumpall'; $pgdumpall->{name} = 'pg_dumpall';
$pgdumpall->AddIncludeDir('src\backend'); $pgdumpall->AddIncludeDir('src\backend');
$pgdumpall->AddFile('src\bin\pg_dump\pg_dumpall.c'); $pgdumpall->AddFile('src\bin\pg_dump\pg_dumpall.c');
$pgdumpall->AddFile('src\bin\pg_dump\keywords.c');
$pgdumpall->AddFile('src\backend\parser\kwlookup.c');
my $pgrestore = AddSimpleFrontend('pg_dump', 1); my $pgrestore = AddSimpleFrontend('pg_dump', 1);
$pgrestore->{name} = 'pg_restore'; $pgrestore->{name} = 'pg_restore';
$pgrestore->AddIncludeDir('src\backend'); $pgrestore->AddIncludeDir('src\backend');
$pgrestore->AddFile('src\bin\pg_dump\pg_restore.c'); $pgrestore->AddFile('src\bin\pg_dump\pg_restore.c');
$pgrestore->AddFile('src\bin\pg_dump\keywords.c');
$pgrestore->AddFile('src\backend\parser\kwlookup.c');
my $zic = $solution->AddProject('zic','exe','utils'); my $zic = $solution->AddProject('zic','exe','utils');
$zic->AddFiles('src\timezone','zic.c','ialloc.c','scheck.c','localtime.c'); $zic->AddFiles('src\timezone','zic.c','ialloc.c','scheck.c','localtime.c');
...@@ -322,15 +328,16 @@ sub mkvcbuild ...@@ -322,15 +328,16 @@ sub mkvcbuild
my @files = split /\s+/,$1; my @files = split /\s+/,$1;
foreach my $f (@files) foreach my $f (@files)
{ {
if ($f =~ /\/keywords\.o$/) $f =~ s/\.o$/\.c/;
if ($f eq 'keywords.c')
{ {
$proj->AddFile('src\backend\parser\keywords.c'); $proj->AddFile('src\bin\pg_dump\keywords.c');
$proj->AddIncludeDir('src\backend');
} }
else elsif ($f eq 'kwlookup.c')
{ {
$f =~ s/\.o$/\.c/; $proj->AddFile('src\backend\parser\kwlookup.c');
if ($f eq 'dumputils.c') }
elsif ($f eq 'dumputils.c')
{ {
$proj->AddFile('src\bin\pg_dump\dumputils.c'); $proj->AddFile('src\bin\pg_dump\dumputils.c');
} }
...@@ -343,7 +350,6 @@ sub mkvcbuild ...@@ -343,7 +350,6 @@ sub mkvcbuild
$proj->AddFile('src\bin\scripts\\' . $f); $proj->AddFile('src\bin\scripts\\' . $f);
} }
} }
}
$proj->AddIncludeDir('src\interfaces\libpq'); $proj->AddIncludeDir('src\interfaces\libpq');
$proj->AddIncludeDir('src\bin\pg_dump'); $proj->AddIncludeDir('src\bin\pg_dump');
$proj->AddIncludeDir('src\bin\psql'); $proj->AddIncludeDir('src\bin\psql');
......
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