Thursday, August 11, 2011

Building Subversion (SVN) bindings for Perl and Python

This is a bookmark entry to avoid loosing my time the next time I need this information.

To build Perl and Python bindings together with the SVN binaries using Microsoft Windows SDK v6.1 + VC++ Express 9.0, the following steps are required:

gen-make.py -t vcproj --vsnet-version=2008 --with-httpd=C:\tmp\Src\httpd-2.2.19 --with-neon C:\tmp\Src\svn-1.7.0b2\neon --with-serf=C:\tmp\Src\svn-1.7.0b2\serf --with-sqlite=C:\tmp\Src\svn-1.7.0b2\sqlite --with-zlib=C:\tmp\Src\httpd-2.2.19\srclib\zlib --with-openssl=C:\tmp\Src\httpd-2.2.19\srclib\openssl --with-swig=c:\Programs\swigwin-2.0.0
set INCLUDE=C:\Perl58\lib\CORE;C:\Programs\Microsoft SDKs\Windows\v6.1\Include;C:\Programs\Microsoft Visual Studio 9.0\VC\include
set LIB=C:\Perl58\lib\CORE;C:\Programs\Microsoft SDKs\Windows\v6.1\Lib;C:\Programs\Microsoft Visual Studio 9.0\VC\lib

msbuild subversion_vcnet.sln /t:__SWIG_PYTHON__ /p:Configuration=Release

msbuild subversion_vcnet.sln /t:__SWIG_PERL__ /p:Configuration=Release /p:VCBuildAdditionalOptions="/useenv"
Compiling Subversion under Windows is a piece of cake. So to say.

No comments:

Post a Comment