]> git.donarmstrong.com Git - lilypond.git/blob - flower/SConscript
Clean up buildscripts
[lilypond.git] / flower / SConscript
1 # -*-python-*-
2
3 name = 'flower'
4 outdir = Dir ('.').path
5
6 Import ('env', 'src_glob')
7 sources = src_glob ('*.cc')
8
9 e = env.Copy ()
10 e.Append (CPPPATH = ['#/flower/include', outdir,])
11 includes = src_glob ('include/*.hh')
12
13 if 1: # ut
14         def test_source (x):
15                 x.startswith ('test')
16         test_sources = filter (lambda x: x.startswith ('test'), sources)
17         sources = filter (lambda x: not x.startswith ('test'), sources)
18         ee = e.Copy ()
19         ee.Append (LIBS = [name, 'boost_unit_test_framework'])
20         test = ee.Program ('test' + name, test_sources)
21
22 if env['static']:
23         e.Library (name, sources) 
24 if not env['static'] or env['shared']:
25         e.SharedLibrary (name, sources)
26
27 po = env.Command ('lilypond.po', sources + includes, env['pocommand'])
28 env.Alias ('po-update', po)