2005-05-18 12:08:37 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
import os
|
|
|
|
import os.path
|
2005-05-18 12:08:37 -04:00
|
|
|
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
|
|
|
|
""")
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
Import('env install_prefix')
|
2005-05-18 12:08:37 -04:00
|
|
|
st = env.Copy()
|
|
|
|
st.Append(CCFLAGS="-DHAVE_CONFIG_H -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
2006-03-04 06:26:25 -05:00
|
|
|
|
2006-04-25 16:23:50 -04:00
|
|
|
libst = st.SharedLibrary('soundtouch', soundtouch_files)
|
2006-03-04 06:26:25 -05:00
|
|
|
|
2005-05-18 12:08:37 -04:00
|
|
|
Default(libst)
|
|
|
|
|
2008-02-21 14:30:01 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libst))
|
2006-04-25 20:45:27 -04:00
|
|
|
|
2006-03-04 06:26:25 -05:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript'] + soundtouch_files + glob.glob('*.h')))
|
|
|
|
|