@@ -3,7 +3,7 @@ package Mkvcbuild;
3
3
#
4
4
# Package that generates build files for msvc build
5
5
#
6
- # $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.5 2007/03/23 09:53:33 mha Exp $
6
+ # $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.6 2007/03/24 14:13:27 mha Exp $
7
7
#
8
8
use Carp;
9
9
use Win32;
@@ -205,13 +205,13 @@ sub mkvcbuild
205
205
206
206
if ($solution -> {options }-> {xml })
207
207
{
208
- $contrib_extraincludes -> {' xml2 ' } = [
208
+ $contrib_extraincludes -> {' pgxml ' } = [
209
209
$solution -> {options }-> {xml } . ' \include' ,
210
210
$solution -> {options }-> {xslt } . ' \include' ,
211
211
$solution -> {options }-> {iconv } . ' \include'
212
212
];
213
213
214
- $contrib_extralibs -> {' xml2 ' } = [
214
+ $contrib_extralibs -> {' pgxml ' } = [
215
215
$solution -> {options }-> {xml } . ' \lib\libxml2.lib' ,
216
216
$solution -> {options }-> {xslt } . ' \lib\libxslt.lib'
217
217
];
@@ -264,7 +264,7 @@ sub mkvcbuild
264
264
}
265
265
closedir ($D );
266
266
267
- my $mf = Project::read_file(' src\backend\utils\mb\conversion_procs\Makefile' );
267
+ $mf = Project::read_file(' src\backend\utils\mb\conversion_procs\Makefile' );
268
268
$mf =~ s {\\ s*[\r\n ]+} {} mg ;
269
269
$mf =~ m { DIRS\s *=\s *(.*)$} m || die ' Could not match in conversion makefile' . " \n " ;
270
270
foreach my $sub (split /\s +/,$1 )
@@ -360,10 +360,11 @@ sub AddContrib
360
360
my $n = shift ;
361
361
my $mf = Project::read_file(' contrib\\ ' . $n . ' \Makefile' );
362
362
363
- if ($mf =~ / ^MODULE_big/mg )
363
+ if ($mf =~ / ^MODULE_big\s *= \s *(.*) $ /mg )
364
364
{
365
+ my $dn = $1 ;
365
366
$mf =~ s {\\\s *[\r\n ]+} {} mg ;
366
- my $proj = $solution -> AddProject($n , ' dll' , ' contrib' );
367
+ my $proj = $solution -> AddProject($dn , ' dll' , ' contrib' );
367
368
$mf =~ / ^OBJS\s *=\s *(.*)$ /gm || croak " Could not find objects in MODULE_big for $n \n " ;
368
369
foreach my $o (split /\s +/, $1 )
369
370
{
@@ -456,7 +457,9 @@ sub GenerateContribSqlFiles
456
457
{
457
458
print " Building $out from $in (contrib/$n )...\n " ;
458
459
my $cont = Project::read_file(" contrib/$n /$in " );
459
- $cont =~ s / MODULE_PATHNAME/ \$ libdir\/ $n / g ;
460
+ my $dn = $n ;
461
+ if ($mf =~ / ^MODULE_big\s *=\s *(.*)$ /m ) { $dn = $1 }
462
+ $cont =~ s / MODULE_PATHNAME/ \$ libdir\/ $dn / g ;
460
463
my $o ;
461
464
open ($o ," >contrib/$n /$out " ) || croak " Could not write to contrib/$n /$d " ;
462
465
print $o $cont ;
0 commit comments