Fixed an error in the Code::Blocks batch-build

Improved the VC2008 batch-build
Added a VC2005 batch-build
Added a global batch-build script for all Windows compilers

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1376 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-01-27 16:02:45 +00:00
parent 57194f4d4b
commit f044d80f09
4 changed files with 48 additions and 12 deletions

View File

@ -0,0 +1,18 @@
@echo off
echo Compiling MinGW libraries...
cd codeblocks\batch-build
call build.bat
echo Compiling Visual C++ 2005 libraries...
cd ..\..\vc2005\batch-build
call build.bat
echo Compiling Visual C++ 2008 libraries...
cd ..\..\vc2008\batch-build
call build.bat
cd ..\..
echo Done
pause

View File

@ -2,7 +2,7 @@
REM Retrieve the SFML path REM Retrieve the SFML path
set SFML="%CD%\..\..\.." set SFML="%CD%\..\..\.."
set TMP="%CD%\temp" set TMPDIR="%CD%\temp"
REM Add the Code::Blocks path to the PATH REM Add the Code::Blocks path to the PATH
set PATH=%PATH%;"%CD%" set PATH=%PATH%;"%CD%"
@ -43,11 +43,11 @@ codeblocks -na -nd -ns --build sfml-network.cbp --target="Release DLL_Win32"
codeblocks -na -nd -ns --build sfml-audio.cbp --target="Release DLL_Win32" codeblocks -na -nd -ns --build sfml-audio.cbp --target="Release DLL_Win32"
REM Copy the SFML static libraries into a temporary folder REM Copy the SFML static libraries into a temporary folder
IF NOT EXIST %TMP% mkdir %TMP% IF NOT EXIST %TMPDIR% mkdir %TMPDIR%
cd %SFML%\lib\mingw cd %SFML%\lib\mingw
xcopy libsfml-*-s-d.a %TMP%/q /y xcopy libsfml-*-s-d.a %TMPDIR%/q /y
xcopy libsfml-*-s.a %TMP%/q /y xcopy libsfml-*-s.a %TMPDIR%/q /y
cd %TMP% cd %TMPDIR%
REM Add external libraries to sfml-window REM Add external libraries to sfml-window
echo Adding external libraries to libsfml-window-s... echo Adding external libraries to libsfml-window-s...
@ -86,7 +86,7 @@ xcopy *.a %SFML%\lib\mingw /q /y
del *.a /f /q del *.a /f /q
REM Remove the temporary directory we've just created REM Remove the temporary directory we've just created
rmdir %TMP% /s /q cd ..
rmdir %TMPDIR% /s /q
echo Done echo Done
pause

View File

@ -0,0 +1,17 @@
@echo off
set MSBUILD=%WINDIR%\Microsoft.NET\Framework\v2.0.50727\msbuild
echo Compiling debug static libraries...
%MSBUILD% ..\SFML.sln /verbosity:q /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Debug static"
echo Compiling debug dynamic libraries...
%MSBUILD% ..\SFML.sln /verbosity:q /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Debug DLL"
echo Compiling release static libraries...
%MSBUILD% ..\SFML.sln /verbosity:q /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Release static"
echo Compiling release dynamic libraries...
%MSBUILD% ..\SFML.sln /verbosity:q /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Release DLL"
echo Done

View File

@ -1,16 +1,17 @@
@echo off @echo off
set MSBUILD=%WINDIR%\Microsoft.NET\Framework\v3.5\msbuild
echo Compiling debug static libraries... echo Compiling debug static libraries...
msbuild ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Debug static" %MSBUILD% ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Debug static"
echo Compiling debug dynamic libraries... echo Compiling debug dynamic libraries...
msbuild ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Debug DLL" %MSBUILD% ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Debug DLL"
echo Compiling release static libraries... echo Compiling release static libraries...
msbuild ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Release static" %MSBUILD% ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Release static"
echo Compiling release dynamic libraries... echo Compiling release dynamic libraries...
msbuild ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Release DLL" %MSBUILD% ..\SFML.sln /verbosity:q /maxcpucount /target:SFML\sfml-main,SFML\sfml-system,SFML\sfml-network,SFML\sfml-window,SFML\sfml-graphics,SFML\sfml-audio /property:Configuration="Release DLL"
echo Done echo Done
pause