]> git.donarmstrong.com Git - lilypond.git/blob - flower/SConscript
*** empty log message ***
[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 ballprefix = env['ballprefix'] + '/flower'
25 ball = Builder (prefix = ballprefix + '/', action = 'ln $SOURCE $TARGET')
26 #et = env.Copy (BUILDERS = {'BALL': ball})
27 et = env.Copy ()
28 #ballize = map (et.BALL, all_sources)
29 tar = env.Tar (env['tarball'],
30                map (lambda x: os.path.join (ballprefix, x), all_sources))