vle-forge/vle — pull request #78 by rtrepos (2013-04-23 13:26:25+00:00)
Title: Vle compilation on win32

Commits for win32:
- compilation of vle relies on depenecencies provided as dll (in contrast with thus provided by mxe)
- CPack script is modified to take into account the new compiling environment
- some fixes for win32

This pullrequest is associated with the pull request for vle packages

********************************
The cmds used for vle compilation :

******************************
** Variable
******************************
set VLE_BUILD_ENV=c:\natifvle
******************************
** Downloads and pre install
******************************
Download Boost into %VLE_BUILD_ENV% **** boost_1_53_0
Download vle sources into %VLE_BUILD_ENV% **** dev
Install Mingw (default) **** mingw-get-inst-20120426.exe
Install gtkmm (default) **** gtkmm-win32-devel-2.22 .0-1.exe

******************************
** Install packages from mingw
******************************
mingw-get install libarchive

******************************
** set local variables
******************************
set PKG_CONFIG_PATH=c:\gtkmm\lib\pkgconfig;C:\MinGW\lib\pkgconfig
set boostversion=1_53
set builddir="%VLE_BUILD_ENV%\build"
set sourcedir="%VLE_BUILD_ENV%\vle"
set installdir="%VLE_BUILD_ENV%\install"
mkdir %builddir%\vle
mkdir %builddir%\boost
mkdir %installdir%\vle
mkdir %installdir%\boost
set BOOST_ROOT=%VLE_BUILD_ENV%\install\boost

************************************
** Build Boost
************************************
cd %VLE_BUILD_ENV%\boost_%boostversion%_0\
bootstrap gcc
bjam.exe --toolset=gcc --build-dir=%builddir%\boost --prefix=%installdir%\boost --without-signals --without-graph_parallel --without-mpi --without-python --without-serialization --without-atomic --without-math --without-wave variant=release threading=multi link=shared runtime-link=shared install

************************************
** Build vle
************************************
cd %builddir%\vle
cmake.exe -G "MinGW Makefiles" -DWITH_MPI=OFF -DWITH_GTKSOURCEVIEW=OFF -DWITH_DOXYGEN=ON -DCMAKE_INSTALL_PREFIX=%installdir%\vle -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVLE_MINGW_PATH="c:\mingw" -DVLE_GTK_PATH="c:\gtkmm" -DVLE_BOOST_INCLUDE_PATH="%VLE_BUILD_ENV%\install\boost\include\boost-%boostversion%" -DVLE_BOOST_LIBRARIES_PATH="%VLE_BUILD_ENV%\install\boost\lib" %sourcedir%

mingw32-make install

set PATH=%installdir%\vle\bin;%PATH%
mingw32-make test