Paul Davis
68e943265e
git-svn-id: svn://localhost/ardour2/branches/3.0@3711 d708f5d6-7413-0410-9779-e7cbd77b26cf
43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
# -*- python -*-
|
|
|
|
import os
|
|
import os.path
|
|
import glob
|
|
|
|
plugin_files = Split("""
|
|
plugins.cpp
|
|
AmplitudeFollower.cpp
|
|
PercussionOnsetDetector.cpp
|
|
SpectralCentroid.cpp
|
|
ZeroCrossing.cpp
|
|
""")
|
|
|
|
aubio_files = Split ("""
|
|
Onset.cpp
|
|
""")
|
|
|
|
Import('env install_prefix libraries')
|
|
vampplugs = env.Clone()
|
|
|
|
vampplugs.Append (CPPATH='#libs/vamp-sdk/vamp', CXXFLAGS="-Ilibs/vamp-sdk")
|
|
vampplugs.Merge ([libraries['vamp'],
|
|
libraries['vamphost']
|
|
])
|
|
|
|
sources = plugin_files
|
|
|
|
if vampplugs['AUBIO']:
|
|
sources += aubio_files
|
|
vampplugs.Merge ([libraries['aubio']])
|
|
|
|
libvampplugins = vampplugs.SharedLibrary('ardourvampplugins', sources)
|
|
|
|
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' ] +
|
|
plugin_files + aubio_files +
|
|
glob.glob('*.h')))
|