]> git.donarmstrong.com Git - lilypond.git/blob - lily/SConscript
lekker hakken
[lilypond.git] / lily / SConscript
1 # -*-python-*-
2
3 import glob
4
5 sources = glob.glob ('*.cc') + ['parser.yy', 'lexer.ll']
6 name = 'lyparser'
7
8 Import ('env')
9 e = env.Copy ()
10
11 e.Append (YACCFLAGS = '-d')
12 e.Append (CPPPATH = ['include', '#/lily/include', '#/flower/include'])
13 e.Depends ('lexer.cc', 'parser.cc')
14
15 # some stuff here from lily-as-lib
16 if os.path.exists ('main.cc'):
17         if env['static']:
18                 e.Library (name, sources) 
19         if not env['static'] or ['shared']:
20                 e.SharedLibrary (name, sources)
21 else:
22         #e.Append (LIBS = ['lygui', 'lyparser', 'lily', 'flower'])
23         e.Append (LIBS = ['flower'])
24         e.ParseConfig ('guile-config link')
25         name = 'lilypond-bin'
26         e.Program (name, sources)