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

[PATCH] build swig bindings with serf installed on windows.

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2006-11-03 19:03:54 CET

Hi,

I noticed the problem this morning during signing of the 1.4.2 release,
that building the SWIG bindings will fail on windows if serf is included
when generating the project files.

The reason is that when serf is included, the serf path will be passed
to the swig executable as include path, like this: -I"..\..\..\serf\".
The closing '\' character is not supposed to be there. It's added during
creation of the project files, attached patch fixes that.

Lieven.

[[[
Fix build of swig bindings when --with-serf is defined: remove the
trailing '\' of the serf include path as it'll break the swig build step.

* build/generator/gen_win.py
  (get_win_includes): don't add trailing '\' to serf include path.

]]]

Index: build/generator/gen_win.py
===================================================================
--- build/generator/gen_win.py (revision 22200)
+++ build/generator/gen_win.py (working copy)
@@ -678,7 +678,7 @@
       fakeincludes.append(self.apath(self.libintl_path, 'inc'))
     
     if self.serf_lib:
- fakeincludes.append(self.apath(self.serf_path, ""))
+ fakeincludes.append(self.apath(self.serf_path))
 
     if self.swig_libdir \
        and (isinstance(target, gen_base.TargetSWIG)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 3 19:04:16 2006

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.