8 reldir = str (Dir ('.').srcnode ())
10 sources = glob.glob ('*.cc')
11 includes = glob.glob ('include/*.hh')
13 outdir = os.path.join (env['build'], reldir, env['out'])
17 e.Append (CPPPATH = [outdir, 'include'])
19 e.Library (name, sources)
20 if not env['static'] or env['shared']:
21 e.SharedLibrary (name, sources)
23 all_sources = ['SConscript',] + sources + includes
24 all_sources = ['SConscript', 'GNUmakefile']
25 ballprefix = env['ballprefix'] + '/flower'
26 ball = Builder (prefix = ballprefix + '/', action = 'ln $SOURCE $TARGET')
27 et = env.Copy (BUILDERS = {'BALL': ball})
29 ballize = map (et.BALL, all_sources)
30 tar = env.Tar (env['tarball'],
31 map (lambda x: os.path.join (ballprefix, x), all_sources))