.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   scons (http://forums.bots-united.com/showthread.php?t=4141)

mirv 24-06-2005 06:10

scons
 
Just curious as to if anyone has tried scons as an alternative to make, and if so what they think of it?
I had a brief look over it, seems simple & poweful enough, but first looks can be deceiving.

Whistler 24-06-2005 12:23

Re: scons
 
http://fear.sf.net

Rick 17-09-2005 22:31

Re: scons
 
Damn this looks good!
I think I'm going to switch...never really liked all those annoying auto tools :-\

[EDIT]
WOW! Now I see why KDE is switching to SCons :)
You just need to make a single small text file for checking libs, settings directory etc. Here is a small example:
Code:

Library('libtest', ['libtest.cpp'])

env = Environment(LIBPATH='.', CPPPATH = '.')
conf = Configure(env)

if not conf.CheckLibWithHeader('test', 'main.h', 'C++', 'test();', 1):
    print 'Did not find libtest.a or test.lib, exiting!'
    Exit(1)

env = conf.Finish()

env.Program('test2', 'test2.cpp')

This will:
  • build static lib 'libtest.a',
  • check if libtest.a and main.h exist,
  • the function 'test()' can be called,
  • append lib libtest to the lib list if all gone well
  • Build test2 and link it with libtest

With autotools this would give me about 10 scripts and 5 config files ;)


All times are GMT +2. The time now is 00:51.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.