[Gllug] SCons usage with multiple programs and libraries

Jon Dye jon at pecorous.co.uk
Fri May 22 15:04:04 UTC 2009


Hi,

Are there any SCons experts here?  I searched the SCons website and
google and didn't find anything particularly useful.  I was then
hoping to ask this on the scons-users email list but my subscription
request was replied to with:

> 2009/5/22  <admin at scons.tigris.org>:
> We are sorry to inform you that your recent subscription request was denied. This is probably because you do not have the required permissions or because you are already subscribed.

and emailing the above address receives:
5.1.0 - Unknown address error 550-'<admin at scons.tigris.org>: Recipient
address rejected: User unknown in virtual alias table'

So my question is; I have a source tree which looks a bit like this:

liba/
liba/a.c
liba/a.h
liba/SConscript
libb/b.c
libb/b.h
libb/SConscript
lib...
app_a/a.c
app_a/SConscript
app_b/b.c
app_b/SConscript
app_...
SConscript

The apps depend on 1 or more of the libraries and the libraries may
depend on each other for headers.  Each SConscript file describes how
to build everything in the directory it's in.  Currently all include
paths and library paths are defined at the top level SConscript file
and everything links against all the libraries.  Previously I had
every program explicitly list all their required paths and
dependencies but that was more work to manage (although less redundant
linking).

I'm wondering what a better scheme might be?  Any suggestions about my
scons problem or my scons mailing list problem are welcome.

JD
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list