# -*- python -*- ## ## SConscript - SCons buildscript for tool subdirectory (called by SConstruct) ## Import('env','artifacts','core') support_lib = artifacts['support'] envSvg = env.Clone() envSvg.mergeConf(['librsvg-2.0']) envSvg.Append(LIBS=support_lib) #luidgen = env.Program('luidgen', 'luidgen.c', LIBS=support_lib, install=True) ## for generating Lumiera-UIDs rsvg = envSvg.Program('rsvg-convert','rsvg-convert.c') ## for rendering SVG icons (uses librsvg) # build additional test and administrative tools.... artifacts['tools'] = [ env.Program('hello-world','hello.c', install=True) #### hello world (checks C build) + env.Program('try', 'try.cpp', LIBS=support_lib) #### to try out some feature... # + luidgen + rsvg ] # Rendering the SVG Icons depends on rsvg-convert env.Depends(artifacts['icons'], rsvg)