I had written up these instructions for use at my job... hope they are helpful.
Setting Up Code::Blocks ¶
* Startup Code::Blocks
* If Code blocks ask you to associate itself with source files make your own decision.
* Click Create a new project from the startup page/window.
* In the resulting dialog select Empty Project
* Hit Go
* In the Folder to create project in: field enter your directory path to the trunk.
o Example: Mine is c:\Code\trunk\
o Make sure the final directory that the *.cbp file ends up in is where you top level SConstruct file is.
* Hit Next
* In the Compiler: pull-down select GNU GCC Compiler
o This requires that MinGW is installed… look at the Install section above.
* Select the Create "Release" configuration
* Hit Finish
* Goto Project ⇒ Properties…
* Select This is a custom Makefile [checkbox]
* Hit OK
* Goto [Menu] Project ⇒ Build options… A dialog appears.
* Select Release from the left pane.
* From the second pull-down select "Make" commands
* Delete the contents of the four lower fields
* In the first field, Build project/target:, insert the following <path to scons.bat>\scons.bat -k -j 2
o On my system <path to scons.bat> is c:\apps\coding\Python\ so the result is c:\apps\coding\Python\scons.bat -k -j 2
o The default location of Python is something like c:\Python24
* Skip the second field (i.e. leave this blank)
* In the 3rd and 4th fields enter <path to scons.bat>\scons.bat -c
Populating a Code::Blocks Project ¶
* Goto Project ⇒ Add files recursively…
* Browse to your /trunk directory, select it and hit OK
* Hit the Wildcard select button
* Enter the following (or whatever makes sense for your project): *.cc;*.hh;*.cpp;*.h;*.c;*.S;*.y;*.yy;*.l;*.ll;*.txt;*.py;*.xml;*.base;*sconstruct;*sconscript
* Alternative to Wildcard select: Just hit the Select All button
* Hit OK
* Hit Yes to clear previous selections.
* Hit OK
* Wait for a second or two while it parses everything
Building with Code::Blocks ¶
* Find the blue button that looks sort of like a gear.
* Click it
Clean your code with Code::Blocks ¶
* Find the button that looks like it has two green arrows chasing each other.
* Click it