2008-06-02 17:41:35 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
soundtouch_files = Split("""
|
|
|
|
AAFilter.cpp
|
|
|
|
FIFOSampleBuffer.cpp
|
|
|
|
FIRFilter.cpp
|
|
|
|
RateTransposer.cpp
|
|
|
|
SoundTouch.cpp
|
|
|
|
TDStretch.cpp
|
|
|
|
mmx_gcc.cpp
|
|
|
|
cpu_detect_x86_gcc.cpp
|
|
|
|
""")
|
|
|
|
|
|
|
|
Import('env install_prefix')
|
2008-09-10 11:03:30 -04:00
|
|
|
st = env.Clone()
|
2008-06-02 17:41:35 -04:00
|
|
|
st.Append(CCFLAGS="-DHAVE_CONFIG_H -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
|
|
|
|
libst = st.SharedLibrary('soundtouch', soundtouch_files)
|
|
|
|
|
|
|
|
Default(libst)
|
|
|
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libst))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript'] + soundtouch_files + glob.glob('*.h')))
|
|
|
|
|