[Gdal-dev] Motion: Adding the SWIG generated files to the SVN
szekerest at gmail.com
Tue Jan 23 08:31:34 EST 2007
It seems to me that many of the developers would favour adding the
SWIG generated files to the SVN repository. Currently for some of the
bindings the generated files are already inside, but the others like
C# doesn't have these files version controlled.
The primary benefit of this solution that it would eliminate the need
to have the SWIG installed for those who want to compile the binaries
from the source. In addition the interface maintainer could choose the
most appropriate SWIG version to generate the files.
However there are some disdvantages when applying this concept, as:
1. For some of the bindings SWIG generates high number of the files.
For the C# interface currently the following files should be added:
Directory of \gdal\swig\csharp\const
Directory of \gdal\swig\csharp\gdal
Directory of \gdal\swig\csharp\ogr
Directory of \gdal\swig\csharp\osr
Upon modifying the C# interface files (.i) sometimes all of the
generated files may vary, some of the files might be deleted renamed
or added. Therefore the maintainability of these files might bring in
some additional complexity.
2. If different people with different swigs generate these files they
will potentially clobber each other in the repository and even
generate conflicts. Here is an example taken out of a post in the
A checks out
B checks out
A generates and updates and commits
B generates and updates, conflict!
Before applying such changes I would like to know how the folks can
live with this idea. When I get some positive confirmation I'm ready
to make it for the SWIG C# binding.
I would start a vote on this approval with a +0 on my side.
More information about the Gdal-dev