Paul Davis
c86210a9d5
git-svn-id: svn://localhost/ardour2/branches/3.0@3712 d708f5d6-7413-0410-9779-e7cbd77b26cf
46 lines
1.2 KiB
Python
46 lines
1.2 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']])
|
|
vampplugs.Merge ([libraries['fftw3f']])
|
|
else:
|
|
print 'WARNING: some VAMP plugins will not be built because this machine has no AUBIO support'
|
|
|
|
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')))
|