Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Allefant on April 01, 2006, 10:29:58 pm

Title: scons
Post by: Allefant on April 01, 2006, 10:29:58 pm
Does anyone have experience with using scons instead of make with codeblocks?
Title: Re: scons
Post by: Michael on April 01, 2006, 10:53:04 pm
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
Title: Re: scons
Post by: Conan Kudo on April 01, 2006, 11:18:35 pm
what is scons?
Title: Re: scons
Post by: Michael on April 01, 2006, 11:22:26 pm
what is scons?

From here (http://www.scons.org/):

Quote
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
Title: Re: scons
Post by: Conan Kudo on April 01, 2006, 11:29:22 pm
Ahh, well that seems very interesting...
Title: Re: scons
Post by: yop on April 02, 2006, 02:19:30 am
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.
Title: Re: scons
Post by: Michael on April 02, 2006, 10:54:10 pm
[...]Since Yiannis says that C::B will be able to support any build method[...]

This is IMHO a great thing :D.

Best wisehs,
Michael
Title: Re: scons
Post by: Allefant on April 03, 2006, 01:12:10 am
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..
Title: Re: scons
Post by: klight on April 03, 2006, 03:01:57 pm
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. 
Title: Re: scons
Post by: Allefant on April 04, 2006, 03:17:18 pm
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?