]> git.donarmstrong.com Git - lilypond.git/blob - lily/SConscript
GO_FAST_BUTTON: implement tips from Andreas Roach.
[lilypond.git] / lily / SConscript
1 # -*-python-*-
2
3 Import ('env', 'src_glob', 'install')
4
5 outdir = Dir ('.').abspath
6
7 cc_sources =  src_glob ('*.cc')
8 sources = cc_sources + ['parser.yy', 'lexer.ll']
9 includes = src_glob ('include/*.hh')
10
11 e = env.Copy ()
12
13 e.Append (
14         CPPPATH = ['#/lily/include', '#/flower/include', outdir],
15         LEXFLAGS = ['-Cfe', '-p', '-p'],
16         LIBS = ['flower'],
17         )
18
19 e.HH ('parser.hh', 'parser.yy')
20 e.ParseConfig ('guile-config link')
21 lily = e.Program ('lilypond-bin', sources)
22 install (lily, env['bindir'])
23
24 po = env.Command ('lilypond.po', cc_sources + includes, env['pocommand'])
25 env.Alias ('po-update', po)