You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2006/10/16 08:49:27 UTC
svn commit: r464398 - in /xerces/c/trunk/swig/perl: IO/Makefile.PL
SAX/Makefile.PL
Author: amassari
Date: Sun Oct 15 23:49:26 2006
New Revision: 464398
URL: http://svn.apache.org/viewvc?view=rev&rev=464398
Log:
Define SWIG macro in the generated makefile
Modified:
xerces/c/trunk/swig/perl/IO/Makefile.PL
xerces/c/trunk/swig/perl/SAX/Makefile.PL
Modified: xerces/c/trunk/swig/perl/IO/Makefile.PL
URL: http://svn.apache.org/viewvc/xerces/c/trunk/swig/perl/IO/Makefile.PL?view=diff&rev=464398&r1=464397&r2=464398
==============================================================================
--- xerces/c/trunk/swig/perl/IO/Makefile.PL (original)
+++ xerces/c/trunk/swig/perl/IO/Makefile.PL Sun Oct 15 23:49:26 2006
@@ -16,6 +16,8 @@
use strict;
+my @MACRO;
+
my $BLIB_DIR = '../blib/lib/XML/Xerces';
if ($XERCES_DEVEL) {
print STDERR "\tWelcome Xerces Developer!\n";
@@ -41,6 +43,11 @@
return $retval;
}
+ my $swig = $SWIG || 'swig';
+ @MACRO = ('macro' => {
+ 'SWIG' => "$swig",
+ });
+
*MY::postamble = \&Xerces_IO_postamble;
}
@@ -54,6 +61,7 @@
'CC' => $CXX,
'SKIP' => [qw( test makeaperl xs_o)],
@OPTIMIZE,
+ @MACRO,
@LDFLAGS,
);
Modified: xerces/c/trunk/swig/perl/SAX/Makefile.PL
URL: http://svn.apache.org/viewvc/xerces/c/trunk/swig/perl/SAX/Makefile.PL?view=diff&rev=464398&r1=464397&r2=464398
==============================================================================
--- xerces/c/trunk/swig/perl/SAX/Makefile.PL (original)
+++ xerces/c/trunk/swig/perl/SAX/Makefile.PL Sun Oct 15 23:49:26 2006
@@ -15,6 +15,7 @@
#
use strict;
+my @MACRO;
my $BLIB_DIR = '../blib/lib/XML/Xerces';
if ($XERCES_DEVEL) {
@@ -41,6 +42,11 @@
return $retval;
}
+ my $swig = $SWIG || 'swig';
+ @MACRO = ('macro' => {
+ 'SWIG' => "$swig",
+ });
+
*MY::postamble = \&Xerces_SAX_postamble;
}
@@ -54,6 +60,7 @@
'CC' => $CXX,
'SKIP' => [qw( test makeaperl xs_o)],
@OPTIMIZE,
+ @MACRO,
@LDFLAGS,
);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org