2008-06-02 17:41:35 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
vampsdk_files = Split ("""
|
2009-04-16 08:32:55 -04:00
|
|
|
src/vamp-sdk/PluginAdapter.cpp
|
|
|
|
src/vamp-sdk/RealTime.cpp
|
2008-06-02 17:41:35 -04:00
|
|
|
""")
|
|
|
|
|
|
|
|
vamphostsdk_files = Split ("""
|
2009-04-16 08:32:55 -04:00
|
|
|
src/vamp-hostsdk/PluginHostAdapter.cpp
|
|
|
|
src/vamp-hostsdk/PluginBufferingAdapter.cpp
|
|
|
|
src/vamp-hostsdk/PluginChannelAdapter.cpp
|
|
|
|
src/vamp-hostsdk/PluginInputDomainAdapter.cpp
|
|
|
|
src/vamp-hostsdk/PluginLoader.cpp
|
|
|
|
src/vamp-hostsdk/PluginWrapper.cpp
|
|
|
|
src/vamp-hostsdk/RealTime.cpp
|
2008-06-02 17:41:35 -04:00
|
|
|
""")
|
|
|
|
|
|
|
|
Import('env install_prefix libraries')
|
2008-09-10 11:03:30 -04:00
|
|
|
vampsdk = env.Clone()
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
vampsdk.Merge ([libraries['fftw3'], libraries['fftw3f']])
|
|
|
|
|
|
|
|
# HAVE_FFTW3 is used to help improve some performance aspects of VAMP's InputDomainAdapter
|
|
|
|
|
|
|
|
vampsdk.Append (CPPATH='#libs/vamp-sdk/vamp', CXXFLAGS="-Ilibs/vamp-sdk -DHAVE_FFTW3")
|
|
|
|
|
|
|
|
libvampsdk = vampsdk.SharedLibrary('vampsdk', vampsdk_files)
|
|
|
|
libvamphostsdk = vampsdk.SharedLibrary('vamphostsdk', vamphostsdk_files)
|
|
|
|
|
|
|
|
Default(libvampsdk)
|
|
|
|
Default(libvamphostsdk)
|
|
|
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libvampsdk))
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libvamphostsdk))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript', 'COPYING', 'README' ] +
|
|
|
|
vampsdk_files +
|
|
|
|
vamphostsdk_files +
|
|
|
|
glob.glob('vamp/*.h') +
|
|
|
|
glob.glob('vamp-sdk/*.h') +
|
2009-04-16 08:32:55 -04:00
|
|
|
glob.glob('vamp-hostsdk/*.h')))
|