You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2001/10/07 01:42:03 UTC
cvs commit: xml-xerces/perl Makefile.PL
jasons 01/10/06 16:42:03
Modified: perl Makefile.PL
Log:
* Makefile.PL (Repository):
Added newlines to output
Added preSWIG.pl for creating private headers automatically
New version (1.5.7)
Revision Changes Path
1.22 +27 -4 xml-xerces/perl/Makefile.PL
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/xml-xerces/perl/Makefile.PL,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- Makefile.PL 2001/09/10 07:19:46 1.21
+++ Makefile.PL 2001/10/06 23:42:03 1.22
@@ -2,13 +2,14 @@
use Env qw(XERCES_LIB XERCES_INCLUDE XERCESCROOT XERCES_DEVEL SWIG);
use strict;
use vars qw($INCLUDES);
+use File::Basename;
if (defined $XERCES_LIB || defined $XERCES_INCLUDE) {
# this is the default, so do nothing
} elsif (defined $XERCESCROOT) {
# they are instructing us to use the build directories
- $XERCES_INCLUDE = "$XERCESCROOT/include\n";
- $XERCES_LIB = "$XERCESCROOT/lib\n";
+ $XERCES_INCLUDE = "$XERCESCROOT/include";
+ $XERCES_LIB = "$XERCESCROOT/lib";
}
my $LIBS = '-lpthread';
@@ -109,18 +110,40 @@
my $FIND = 'find';
my @handler_headers;
chomp(@handler_headers = `$FIND Handler -name "*.swig.hpp"`);
+ my @pre_swig_headers = qw(framework/StdInInputSource.hpp
+ framework/XMLPScanToken.hpp
+ util/PlatformUtils.hpp
+ util/XMLURL.hpp
+ util/XMLUri.hpp
+ );
+ my $PRE_SWIG_HEADERS;
+ my @PRE_SWIG_HEADERS;
+ my $PRIVATE_HEADER_DIR = './Xerces_headers';
+
+ foreach my $header (@pre_swig_headers) {
+ my $outfile = "$PRIVATE_HEADER_DIR/$header";
+ my $infile = "$XERCES_INCLUDE/$header";
+ push(@PRE_SWIG_HEADERS,$outfile);
+ $PRE_SWIG_HEADERS .= <<EOT;
+$outfile: $infile
+ preSwig.pl --directory $PRIVATE_HEADER_DIR $infile
+EOT
+ }
+
sub Xerces_postamble {
chomp(my @header_files = `$FIND Xerces_headers -name "*.hpp"`);
push(@header_files,@handler_headers);
local $" = ' ';
<<TERMINUS;
+$PRE_SWIG_HEADERS
+
Xerces.pm: postModule.pl
\$(SWIG) -I. -ILib -ILib/perl5 \$(INC) -D\$(SWIG_VERSION) -package XML::Xerces -perl5 -c++ -shadow -o foo.C Xerces.i
rm foo.C
perl postModule.pl Xerces.pm
-Xerces.C: Xerces.i @header_files postSource.pl
+Xerces.C: Xerces.i typemaps.i @PRE_SWIG_HEADERS @header_files postSource.pl
\$(SWIG) -I. -ILib -ILib/perl5 \$(INC) -D\$(SWIG_VERSION) -package XML::Xerces -perl5 -c++ -shadow -o Xerces.C Xerces.i
perl postSource.pl Xerces.C
perl postModule.pl Xerces.pm
@@ -163,7 +186,7 @@
# 'OPTIMIZE' => '-g',
'OBJECT' => $OBJS,
'DIR' => ['DOMParse'],
- 'VERSION' => "$XERCES_MAJOR_VERSION.6",
+ 'VERSION' => "$XERCES_MAJOR_VERSION.7",
@MACRO
);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org