2007-07-02 05:27:20 +02:00
|
|
|
# -*- python -*-
|
|
|
|
|
##
|
|
|
|
|
## SConscript - SCons buildscript for tool subdirectory (called by SConstruct)
|
|
|
|
|
##
|
|
|
|
|
|
2009-02-08 20:13:19 +01:00
|
|
|
Import('env','artifacts','core')
|
2007-07-02 05:27:20 +02:00
|
|
|
|
2009-01-13 11:52:04 +01:00
|
|
|
support_lib = artifacts['support']
|
2007-08-17 00:36:07 +02:00
|
|
|
|
2009-02-08 20:13:19 +01:00
|
|
|
envSvg = env.Clone()
|
2009-04-24 17:33:03 +02:00
|
|
|
envSvg.mergeConf(['librsvg-2.0','gthread-2.0'])
|
2009-02-08 20:13:19 +01:00
|
|
|
envSvg.Append(LIBS=support_lib)
|
2009-01-13 12:16:48 +01:00
|
|
|
|
|
|
|
|
|
2009-04-24 17:20:39 +02:00
|
|
|
vgsuppr = env.Program('#$BINDIR/vgsuppression','vgsuppression.c', LIBS=core)## for suppressing false valgrind alarms
|
2009-02-08 20:13:19 +01:00
|
|
|
luidgen = env.Program('#$BINDIR/luidgen', 'luidgen.c', LIBS=support_lib) ## for generating Lumiera-UIDs
|
|
|
|
|
rsvg = envSvg.Program('#$BINDIR/rsvg-convert','rsvg-convert.c') ## for rendering SVG icons (uses librsvg)
|
2009-01-13 12:16:48 +01:00
|
|
|
|
|
|
|
|
# build additional test and administrative tools....
|
|
|
|
|
artifacts['tools'] = [ env.Program('#$BINDIR/hello-world','hello.c') #### hello world (checks C build)
|
2008-10-26 22:35:01 +01:00
|
|
|
+ env.Program('#$BINDIR/try', 'try.cpp') #### to try out some feature...
|
2009-04-24 17:33:03 +02:00
|
|
|
# + luidgen
|
2009-01-13 12:16:48 +01:00
|
|
|
+ vgsuppr
|
|
|
|
|
+ rsvg
|
2007-08-17 00:36:07 +02:00
|
|
|
]
|
2007-07-02 05:27:20 +02:00
|
|
|
|
2009-01-13 12:16:48 +01:00
|
|
|
# Rendering the SVG Icons depends on rsvg-convert
|
|
|
|
|
env.Depends(artifacts['icons'], rsvg)
|
|
|
|
|
|