2008-06-02 17:41:35 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
2008-09-10 11:03:30 -04:00
|
|
|
plugin_files = Split("""
|
|
|
|
plugins.cpp
|
|
|
|
AmplitudeFollower.cpp
|
|
|
|
PercussionOnsetDetector.cpp
|
|
|
|
SpectralCentroid.cpp
|
|
|
|
ZeroCrossing.cpp
|
|
|
|
""")
|
|
|
|
|
|
|
|
aubio_files = Split ("""
|
|
|
|
Onset.cpp
|
|
|
|
""")
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
Import('env install_prefix libraries')
|
2008-09-10 11:03:30 -04:00
|
|
|
vampplugs = env.Clone()
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
vampplugs.Append (CPPATH='#libs/vamp-sdk/vamp', CXXFLAGS="-Ilibs/vamp-sdk")
|
|
|
|
vampplugs.Merge ([libraries['vamp'],
|
|
|
|
libraries['vamphost']
|
|
|
|
])
|
|
|
|
|
2008-09-10 11:03:30 -04:00
|
|
|
sources = plugin_files
|
|
|
|
|
|
|
|
if vampplugs['AUBIO']:
|
|
|
|
sources += aubio_files
|
|
|
|
vampplugs.Merge ([libraries['aubio']])
|
|
|
|
|
|
|
|
libvampplugins = vampplugs.SharedLibrary('ardourvampplugins', sources)
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
Default(libvampplugins)
|
|
|
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3', 'vamp'), libvampplugins))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript' ] +
|
2008-09-10 11:03:30 -04:00
|
|
|
plugin_files + aubio_files +
|
2008-06-02 17:41:35 -04:00
|
|
|
glob.glob('*.h')))
|