2008-09-18 20:47:49 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env libraries install_prefix')
|
|
|
|
|
|
|
|
evoral = env.Clone()
|
|
|
|
evoral.Merge([
|
2008-09-19 10:38:46 -04:00
|
|
|
libraries['glib2'],
|
|
|
|
libraries['sigc2'],
|
2008-09-18 20:47:49 -04:00
|
|
|
libraries['glibmm2'],
|
|
|
|
libraries['xml'],
|
2008-12-29 14:50:19 -05:00
|
|
|
libraries['pbd'],
|
|
|
|
libraries['boost']
|
2008-09-18 20:47:49 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
if evoral['IS_OSX']:
|
|
|
|
evoral.Append (LINKFLAGS="-Xlinker -headerpad -Xlinker 2048")
|
|
|
|
|
|
|
|
domain = 'evoral'
|
|
|
|
|
|
|
|
evoral.Append(DOMAIN=domain, MAJOR=1, MINOR=0, MICRO=0)
|
2008-09-22 12:28:02 -04:00
|
|
|
evoral.Append(CXXFLAGS="-DEVORAL_MIDI_XML")
|
2008-09-18 20:47:49 -04:00
|
|
|
|
|
|
|
sources = Split("""
|
|
|
|
src/Control.cpp
|
|
|
|
src/ControlList.cpp
|
|
|
|
src/ControlSet.cpp
|
2008-09-22 12:28:02 -04:00
|
|
|
src/Curve.cpp
|
2008-09-18 20:47:49 -04:00
|
|
|
src/Event.cpp
|
2008-09-22 12:28:02 -04:00
|
|
|
src/MIDIEvent.cpp
|
2008-09-18 20:47:49 -04:00
|
|
|
src/Note.cpp
|
2008-09-29 20:45:26 -04:00
|
|
|
src/SMF.cpp
|
|
|
|
src/SMFReader.cpp
|
2008-09-18 20:47:49 -04:00
|
|
|
src/Sequence.cpp
|
|
|
|
""")
|
|
|
|
|
|
|
|
libevoral = evoral.SharedLibrary('evoral', [ sources ])
|
|
|
|
|
|
|
|
Default(libevoral)
|
|
|
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libevoral))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript' ] + sources +
|
|
|
|
glob.glob('midi++/*.h')))
|