diff --git a/build/build-all-windows.bat b/build/build-all-windows.bat new file mode 100644 index 00000000..f42861e4 --- /dev/null +++ b/build/build-all-windows.bat @@ -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 diff --git a/build/codeblocks/batch-build/build.bat b/build/codeblocks/batch-build/build.bat index e9c63cdf..b84ad7dc 100644 --- a/build/codeblocks/batch-build/build.bat +++ b/build/codeblocks/batch-build/build.bat @@ -2,7 +2,7 @@ REM Retrieve the SFML path set SFML="%CD%\..\..\.." -set TMP="%CD%\temp" +set TMPDIR="%CD%\temp" REM Add the Code::Blocks path to the PATH 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" 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 -xcopy libsfml-*-s-d.a %TMP%/q /y -xcopy libsfml-*-s.a %TMP%/q /y -cd %TMP% +xcopy libsfml-*-s-d.a %TMPDIR%/q /y +xcopy libsfml-*-s.a %TMPDIR%/q /y +cd %TMPDIR% REM Add external libraries to sfml-window echo Adding external libraries to libsfml-window-s... @@ -86,7 +86,7 @@ xcopy *.a %SFML%\lib\mingw /q /y del *.a /f /q REM Remove the temporary directory we've just created -rmdir %TMP% /s /q +cd .. +rmdir %TMPDIR% /s /q echo Done -pause diff --git a/build/vc2005/batch-build/build.bat b/build/vc2005/batch-build/build.bat new file mode 100644 index 00000000..cdac3f3d --- /dev/null +++ b/build/vc2005/batch-build/build.bat @@ -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 diff --git a/build/vc2008/batch-build/build.bat b/build/vc2008/batch-build/build.bat index 88d50820..e1fbfd57 100644 --- a/build/vc2008/batch-build/build.bat +++ b/build/vc2008/batch-build/build.bat @@ -1,16 +1,17 @@ @echo off +set MSBUILD=%WINDIR%\Microsoft.NET\Framework\v3.5\msbuild + 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... -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... -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... -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 -pause