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

Re: [PATCH] dynamically link swig runtime on windows (Can I commit this?)

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-08-01 08:08:15 CEST

Russell Yanofsky wrote:

>Branko Čibej wrote:
>
>
>> * Lose the gen_swig_runtime batch file, it's horrible. Instead of
>> generating those files during build time, just generate
>> appropriate references to the sources in the .dsp and .vcproj
>> files. There's no need at all to copy the runtime sources
>> anywhere.
>>
>>
>
>AFAICT, that's not possible. The source files in the swig directory are just
>fragments of C code. They have to be copied together in order to be
>compilable.
>
Ah. O.K., then just generate them from gen_win.py.

>>Then add a '--with-swig=DIR' option to gen-make.py,
>> and only generate the __SWIG_*__ projects if it's set (take a
>> look at how '--with-httpd' does that for the Apache modules).
>>
>>
>
>This was the first approach I took, but it turned out to be unneccessary
>since you can get the path to the swig libraries either by running
>"swig -libdir" or by reading the SWIG_LIB environment variable.
>
Great, that makes gen-make.py's job even easier. I'd still like to see
at least a '--with-swig' option (IMHO the default should be to not
generate projects for the bindings, so that we don't have yet another
hard dependency in the Win32 build), but that can be added later in
another patch.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 1 08:09:03 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.