]> git.donarmstrong.com Git - lilypond.git/blob - flower/SConscript
Updates.
[lilypond.git] / flower / SConscript
1 # -*-python-*-
2
3 import glob
4 import os
5
6 Import ('env')
7 here = os.getcwd ()
8 reldir = str (Dir ('.').srcnode ())
9 os.chdir (reldir)
10 sources = glob.glob ('*.cc')
11 includes = glob.glob ('include/*.hh')
12 os.chdir (here)
13 outdir = os.path.join (env['build'], reldir, env['out'])
14
15 name = 'flower'
16 e = env.Copy ()
17 e.Append (CPPPATH = [outdir, 'include'])
18 if env['static']:
19         e.Library (name, sources) 
20 if not env['static'] or env['shared']:
21         e.SharedLibrary (name, sources)
22
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})
28 #et = env.Copy ()
29 ballize = map (et.BALL, all_sources)
30 tar = env.Tar (env['tarball'],
31                map (lambda x: os.path.join (ballprefix, x), all_sources))