1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Build snowball DLL for tsearch-in-core.

(Still needs to build the .sql output files, but this handles the C part
of the build)
This commit is contained in:
Magnus Hagander
2007-08-21 15:10:41 +00:00
parent a3bc467eba
commit b913a94d0a
2 changed files with 22 additions and 2 deletions

View File

@ -3,11 +3,12 @@ package Project;
#
# Package that encapsulates a Visual C++ project file generation
#
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.13 2007/07/25 10:51:03 mha Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.14 2007/08/21 15:10:41 mha Exp $
#
use Carp;
use strict;
use warnings;
use File::Basename;
sub new
{
@ -96,6 +97,18 @@ sub RemoveFile
confess("Could not find file $filename to remove\n");
}
sub RelocateFiles
{
my ($self, $targetdir, $proc) = @_;
foreach my $f (keys %{$self->{files}}) {
my $r = &$proc($f);
if ($r) {
$self->RemoveFile($f);
$self->AddFile($targetdir . '\\' . basename($f));
}
}
}
sub AddReference
{
my $self = shift;