Fix some compiling warnings and errors in OS X
[ardour.git] / libs / evoral / SConscript
1 # -*- python -*-
2
3 import os
4 import os.path
5 import glob
6
7 Import('env libraries install_prefix')
8
9 evoral = env.Clone()
10 evoral.Merge([
11         libraries['glib2'],
12         libraries['sigc2'],
13         libraries['glibmm2'],
14         libraries['xml'], 
15         libraries['pbd'],
16         libraries['boost']      
17         ])
18
19 if evoral['IS_OSX']:
20         evoral.Append (LINKFLAGS="-Xlinker -headerpad -Xlinker 2048")
21
22 domain = 'evoral'
23
24 evoral.Append(DOMAIN=domain, MAJOR=1, MINOR=0, MICRO=0)
25 evoral.Append(CXXFLAGS="-DEVORAL_MIDI_XML")
26
27 sources = Split("""
28 src/Control.cpp
29 src/ControlList.cpp
30 src/ControlSet.cpp
31 src/Curve.cpp
32 src/Event.cpp
33 src/MIDIEvent.cpp
34 src/Note.cpp
35 src/SMF.cpp
36 src/SMFReader.cpp
37 src/Sequence.cpp
38 """)
39
40 libevoral = evoral.SharedLibrary('evoral', [ sources ])
41
42 Default(libevoral)
43
44 env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libevoral))
45
46 env.Alias('tarball', env.Distribute (env['DISTTREE'],
47                                      [ 'SConscript' ] + sources +
48                                      glob.glob('midi++/*.h')))