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

Re: [PATCH] Create dll for libsvn_swig_py library in windows

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-09-27 13:17:11 CEST

Marc Haesen wrote:

>Solves crashing problem of python bindings in windows by compiling the libsvn_swig_py library to a dll in windows.
>* build.conf
> set mscv-static to no for libsvn_swig_py library
>* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
> Define COMPILE_SWIGUTIL before including swigutil_py.h
>* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.h
> Define SWIGUTILEXPORT as __declspec(dllexport) when compiling libsvn_swig_py module in windows
> Define SWIGUTILEXPORT as __declspec(dllimport) when included in other modules in windows
> SWIGUTILEXPORT is empty when WIN32 is not defined
> Put SWIGUTILEXPORT in front of every global function declaration and every extern variable
This patch will obviouslz break the Unix build, because SWIGUTILEXPORT
doesn't get defined there. Apart from that, it's an interesting idea;
I'll see what I can do with this patch.

(BTW, please read

-- Brane

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 27 13:25:19 2005

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.