X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2FSConscript;h=c7e0abd4a0bf48686578c1cdcea4dd396dd1842a;hb=1c4ee4f6b4e6f31602eff804e2ab66d6e658a585;hp=34a034ff8fd679040e1629339912e6b66a400348;hpb=f122caaad45fafe7e76e65c04ec073be873b4cb0;p=lilypond.git diff --git a/flower/SConscript b/flower/SConscript index 34a034ff8f..c7e0abd4a0 100644 --- a/flower/SConscript +++ b/flower/SConscript @@ -1,13 +1,24 @@ # -*-python-*- +name = 'flower' +outdir = Dir ('.').path + Import ('env', 'src_glob') sources = src_glob ('*.cc') -includes = src_glob ('*.hh') -outdir = Dir ('.').path -name = 'flower' e = env.Copy () -e.Append (CPPPATH = [outdir, 'include']) +e.Append (CPPPATH = ['#/flower/include', outdir,]) +includes = src_glob ('include/*.hh') + +if 1: # ut + def test_source (x): + x.startswith ('test') + test_sources = filter (lambda x: x.startswith ('test'), sources) + sources = filter (lambda x: not x.startswith ('test'), sources) + ee = e.Copy () + ee.Append (LIBS = [name, 'boost_unit_test_framework']) + test = ee.Program ('test' + name, test_sources) + if env['static']: e.Library (name, sources) if not env['static'] or env['shared']: