~ubuntu-branches/ubuntu/precise/lilypond/precise

« back to all changes in this revision

Viewing changes to lily/SConscript

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2006-12-19 10:18:12 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061219101812-7awtjkp0i393wxty
Tags: 2.8.7-3
scripts/midi2ly.py: When setting DATADIR, find Lilypond python files
in the @TOPLEVEL_VERSION@ directory, not 'current'.  Patch thanks to
Chris Lamb (chris@chris-lamb.co.uk).  (Closes: #400550)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 = [
 
15
          '#/lily/include',
 
16
          '#/flower/include',
 
17
          '#/kpath-guile/include',
 
18
          outdir],
 
19
        LEXFLAGS = ['-Cfe', '-p', '-p'],
 
20
        LIBS = ['flower', 'kpath-guile'],
 
21
        )
 
22
 
 
23
e.HH ('parser.hh', 'parser.yy')
 
24
e.ParseConfig ('guile-config link')
 
25
lily = e.Program ('lilypond', sources)
 
26
install (lily, env['bindir'])
 
27
 
 
28
# let's not, for now
 
29
#po = env.Command ('lilypond.po', cc_sources + includes, env['pocommand'])
 
30
#env.Alias ('po-update', po)