Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Allefant on April 01, 2006, 10:29:58 pm
-
Does anyone have experience with using scons instead of make with codeblocks?
-
Does anyone have experience with using scons instead of make with codeblocks?
SCons looks interesting :). I did not know about it. I am not sure if someone is using it with C::B (AFAIK).
Best wishes,
Michael
-
what is scons?
-
what is scons?
From here (http://www.scons.org/):
SCons is an Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic Make utility with integrated functionality similar to autoconf/automake and compiler caches such as ccache. In short, SCons is an easier, more reliable and faster way to build software.
Best wishes,
Michael
-
Ahh, well that seems very interesting...
-
We 've talked about scons a long time ago. Since Yiannis says that C::B will be able to support any build method, I think scons could be used as well.
-
[...]Since Yiannis says that C::B will be able to support any build method[...]
This is IMHO a great thing :D.
Best wisehs,
Michael
-
So, what would I do, if I simply want to use scons instead of make? I looked through the project->properties dialog, but couldn't figure it out..
-
Set it up like you were using a custom Makefile project. You'll have to write the SConstruct file yourself, but it is relatively easy. The SConstruct file should be located in the project root (where the .cpb file is located).
On the Projects/targets opitions dialog check the This is a custom Makefile box and enter the SConstruct file name which typically is "SConstruct".
Then on the Project build options dialog, click on the "Make" commands tab and change:
Build project/target: to "c:\python23\scons.bat"
(I've skipped the compile single file...)
Clean project/target: to "c:\python23\scons.bat -c"
Dist-clean project/target: to "c:\python23\scons.bat"
I've assumed Windows, but pointing to scons should be all it should take to get it to work on other platforms.
This isn't a "fully integrated" solution, but should at least make scons projects usable.
-
Thanks, works great. I hadn't seen it, because the "make" tab is not displayed for me without hitting the small black arrow :)
Makes me wonder, is there a reason the Build-Options window cannot be resized, so I could see all tabs?