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