I think batch building is cool, I've made a batch for CodeBlocks. It's inspired from the SFML Code:Blocks batch 😁
BTW, codebocks bin must be in the path.
BTW, codebocks bin must be in the path.
Code:
@echo off
REM Retrieve the Box2D path
set BOX2D="%CD%\..\..\.."
set TMP="%CD%\temp"
set PATH=%PATH%;"%CD%"
REM Compile the BOX2D libraries
cd %BOX2D%\build\codeblocks
for %%f in (Engine FreeGLUT GLUI HelloWorld TestBed) do (
echo Compiling %%f...
codeblocks -na -nd -ns --build %%f.cbp --target="Debug"
codeblocks -na -nd -ns --build %%f.cbp --target="Release"
)
echo Done
pause
REM Retrieve the Box2D path
set BOX2D="%CD%\..\..\.."
set TMP="%CD%\temp"
set PATH=%PATH%;"%CD%"
REM Compile the BOX2D libraries
cd %BOX2D%\build\codeblocks
for %%f in (Engine FreeGLUT GLUI HelloWorld TestBed) do (
echo Compiling %%f...
codeblocks -na -nd -ns --build %%f.cbp --target="Debug"
codeblocks -na -nd -ns --build %%f.cbp --target="Release"
)
echo Done
pause