4 outdir = Dir ('.').path
6 Import ('env', 'src_glob')
7 sources = src_glob ('*.cc')
10 e.Append (CPPPATH = ['#/flower/include', outdir,])
11 includes = src_glob ('include/*.hh')
16 test_sources = filter (lambda x: x.startswith ('test'), sources)
17 sources = filter (lambda x: not x.startswith ('test'), sources)
19 ee.Append (LIBS = [name, 'boost_unit_test_framework'])
20 test = ee.Program ('test' + name, test_sources)
23 e.Library (name, sources)
24 if not env['static'] or env['shared']:
25 e.SharedLibrary (name, sources)
27 po = env.Command ('lilypond.po', sources + includes, env['pocommand'])
28 env.Alias ('po-update', po)