13
0
livetrax/libs/vamp-plugins/SConscript

43 lines
1.0 KiB
Python
Raw Normal View History

# -*- 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')))