Fixed Code::Blocks batch build

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1163 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-07-10 14:17:39 +00:00
parent 48dad05e30
commit 94c45342cd

View File

@ -1,11 +1,11 @@
@echo off @echo off
REM Retrieve the SFML path REM Retrieve the SFML path
set SFML=%CD%\..\..\.. set SFML="%CD%\..\..\.."
set TMP=%CD%\temp set TMP="%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%"
REM Compile the SFML libraries REM Compile the SFML libraries
cd %SFML%\build\codeblocks cd %SFML%\build\codeblocks
@ -49,16 +49,16 @@ cd %TMP%
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...
ar x %SFML%\build\codeblocks\build-static-libs\libgdi32.a ar x %SFML%\build\codeblocks\batch-build\libgdi32.a
ar x %SFML%\build\codeblocks\build-static-libs\libopengl32.a ar x %SFML%\build\codeblocks\batch-build\libopengl32.a
ar x %SFML%\build\codeblocks\build-static-libs\libwinmm.a ar x %SFML%\build\codeblocks\batch-build\libwinmm.a
ar rs libsfml-window-s.a *.o ar rs libsfml-window-s.a *.o
ar rs libsfml-window-s-d.a *.o ar rs libsfml-window-s-d.a *.o
del *.o /f /q del *.o /f /q
REM Add external libraries to sfml-network REM Add external libraries to sfml-network
echo Adding external libraries to libsfml-network-s... echo Adding external libraries to libsfml-network-s...
ar x %SFML%\build\codeblocks\build-static-libs\libws2_32.a ar x %SFML%\build\codeblocks\batch-build\libws2_32.a
ar rs libsfml-network-s.a *.o ar rs libsfml-network-s.a *.o
ar rs libsfml-network-s-d.a *.o ar rs libsfml-network-s-d.a *.o
del *.o /f /q del *.o /f /q