User forums > Using Code::Blocks

scons

<< < (2/2)

yop:
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.

Michael:

--- Quote from: yop on April 02, 2006, 02:19:30 am ---[...]Since Yiannis says that C::B will be able to support any build method[...]

--- End quote ---

This is IMHO a great thing :D.

Best wisehs,
Michael

Allefant:
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..

klight:
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:
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?

Navigation

[0] Message Index

[*] Previous page

Go to full version