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