Author Topic: scons  (Read 12911 times)

Allefant

  • Guest
scons
« on: April 01, 2006, 10:29:58 pm »
Does anyone have experience with using scons instead of make with codeblocks?

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: scons
« Reply #1 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

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: scons
« Reply #2 on: April 01, 2006, 11:18:35 pm »
what is scons?

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: scons
« Reply #3 on: April 01, 2006, 11:22:26 pm »
what is scons?

From here:

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

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: scons
« Reply #4 on: April 01, 2006, 11:29:22 pm »
Ahh, well that seems very interesting...

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: scons
« Reply #5 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.
Life would be so much easier if we could just look at the source code.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: scons
« Reply #6 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

Allefant

  • Guest
Re: scons
« Reply #7 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..

Offline klight

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: scons
« Reply #8 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. 

Allefant

  • Guest
Re: scons
« Reply #9 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?