9d33176b49
* integrated libsmf into scons git-svn-id: svn://localhost/ardour2/branches/3.0@4539 d708f5d6-7413-0410-9779-e7cbd77b26cf
51 lines
1.0 KiB
Python
51 lines
1.0 KiB
Python
# -*- python -*-
|
|
|
|
import os
|
|
import os.path
|
|
import glob
|
|
|
|
Import('env libraries install_prefix')
|
|
|
|
evoral = env.Clone()
|
|
evoral.Merge([
|
|
libraries['glib2'],
|
|
libraries['sigc2'],
|
|
libraries['glibmm2'],
|
|
libraries['xml'],
|
|
libraries['pbd'],
|
|
libraries['boost'],
|
|
libraries['smf']
|
|
])
|
|
|
|
if evoral['IS_OSX']:
|
|
evoral.Append (LINKFLAGS="-Xlinker -headerpad -Xlinker 2048")
|
|
|
|
domain = 'evoral'
|
|
|
|
evoral.Append(DOMAIN=domain, MAJOR=1, MINOR=0, MICRO=0)
|
|
evoral.Append(CXXFLAGS="-DEVORAL_MIDI_XML")
|
|
|
|
sources = Split("""
|
|
src/Control.cpp
|
|
src/ControlList.cpp
|
|
src/ControlSet.cpp
|
|
src/Curve.cpp
|
|
src/Event.cpp
|
|
src/MIDIEvent.cpp
|
|
src/Note.cpp
|
|
src/SMF.cpp
|
|
src/LibSMF.cpp
|
|
src/SMFReader.cpp
|
|
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')))
|