summaryrefslogtreecommitdiff
path: root/lily/SConscript
blob: ebd623fee9a203647ec2667a83a23505e39675a1 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*-python-*-

Import ('env', 'src_glob', 'install')

outdir = Dir ('.').abspath

cc_sources =  src_glob ('*.cc')
sources = cc_sources + ['parser.yy', 'lexer.ll']
includes = src_glob ('include/*.hh')

e = env.Copy ()

e.Append (
	CPPPATH = [
	  '#/lily/include',
	  '#/flower/include',
	  outdir],
	LEXFLAGS = ['-Cfe', '-p', '-p'],
	LIBS = ['flower'],
	)

e.HH ('parser.hh', 'parser.yy')
e.ParseConfig ('guile-config link')
lily = e.Program ('lilypond', sources)
install (lily, env['bindir'])

# let's not, for now
#po = env.Command ('lilypond.po', cc_sources + includes, env['pocommand'])
#env.Alias ('po-update', po)