[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] build swig perl helper library properly

From: Chia-liang Kao <clkao_at_clkao.org>
Date: 2003-08-03 13:51:05 CEST

log message:

This fixes building real libsvn_swig_perl.so, which should have the proper
perl include paths.

* build/ac-macros/swig.m4: assign SWIG_PL_INCLUDES.
* build/generator/gen_base.py: add custom class for swig-pl.

Index: build/ac-macros/swig.m4
===================================================================
--- build/ac-macros/swig.m4 (revision 6640)
+++ build/ac-macros/swig.m4 (working copy)
@@ -107,8 +107,8 @@
     fi
 
     if test "$PERL" != "none" -a "$SWIG_SUITABLE" = "yes"; then
- SWIG_PL_INCLUDES=""
- SWIG_PL_COMPILE="`$PERL -MConfig -e 'print $Config{cc}'` `$PERL -MExtUtils::Embed -e ccopts`"
+ SWIG_PL_INCLUDES="`$PERL -MExtUtils::Embed -e ccopts`"
+ SWIG_PL_COMPILE="`$PERL -MConfig -e 'print $Config{cc}'` $(SWIG_PL_INCLUDES)"
       SWIG_PL_LINK="`$PERL -MConfig -e 'print $Config{ld}'` `$PERL -MConfig -e 'print $Config{lddlflags}'` `$PERL -MExtUtils::Embed -e ldopts`"
     fi
 
Index: build/generator/gen_base.py
===================================================================
--- build/generator/gen_base.py (revision 6640)
+++ build/generator/gen_base.py (working copy)
@@ -310,11 +310,15 @@
 class SWIGUtilJava(ObjectFile):
   ### hmm. this is Makefile-specific
   build_cmd = '$(COMPILE_SWIG_JAVA)'
+class SWIGUtilPerl(ObjectFile):
+ ### hmm. this is Makefile-specific
+ build_cmd = '$(COMPILE_SWIG_PL)'
 
 _custom_build = {
   'apache-mod' : ApacheObject,
   'swig-py' : SWIGUtilPython,
   'swig-java' : SWIGUtilJava,
+ 'swig-pl' : SWIGUtilPerl,
   }
 
 class SWIGLibrary(DependencyNode):

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 3 13:51:38 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.