.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
scons
Old
  (#1)
mirv
Super Moderator
 
mirv's Avatar
 
Status: Offline
Posts: 152
Join Date: Apr 2004
Default scons - 24-06-2005

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.


mirv the Silly Fish.
  
Reply With Quote
Re: scons
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: scons - 24-06-2005

http://fear.sf.net
  
Reply With Quote
Re: scons
Old
  (#3)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: scons - 17-09-2005

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

Last edited by Rick; 17-09-2005 at 23:33..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com