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

Re: [PATCH] Generating VC6 project files for swig bindings

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-07-01 09:13:41 CEST

Russell Yanofsky wrote:

>Branko Cibej wrote:
>>The next step is to add dependencies on the headers converted by the
>>.i files, so that SWIG regenerates the bindings correctly when the
>>headers change.
>A patch is attached which adds dependencies on the headers /included/ by the .i
>files. I'm not sure if this creates more (or less?) dependencies than are
>actually neccessary. VC7 support for these changes needs to be added and the
>patch also needs to be tested on unix. I did compare the new generated makefiles
>with the old generated makefiles and they look correct.
>Log Message:
>Changes to make swig's generated .c files explicitly dependent on the headers
>included in its .i files. This patch affects the generated makefile and
>VC6 projects but not the VC7 projects.
>* build/generator/msvc_dsp.ezt: Added new "sources.user_deps" property.
>* build/generator/gen_base.py (GeneratorBase.compute_hdr_deps): Now computes
> header dependencies for generated swig files.
> (SWIGSource): new DependencyNode class to hold information about .i source
> files.
> (TargetSWIG.add_dependencies): changed to add SWIGSource nodes to the
> dependency graph instead of strings containing the paths to .i files
>* build/generator/gen_win.py (WinGeneratorBase.get_proj_sources): Now adds
> swig header dependencies from the dependency graph as user-defined
> dependencies of the generated .c files in visual studio projects.
>* build/generator/gen_make.py (Generator.write): SWIGSource nodes are
> cast to strings in two places so string and path operations can
> be performed on them.
Committed in revision 6379. Thanks!

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 Tue Jul 1 09:15:02 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.