=== modified file 'mixxx/build/depends.py' --- build/depends.py 2011-11-08 20:10:32 +0000 +++ build/depends.py 2011-11-08 23:38:43 +0000 @@ -222,33 +222,19 @@ build.env.Append(CPPPATH="#lib/replaygain") class SoundTouch(Dependence): - SOUNDTOUCH_PATH = 'soundtouch-1.6.0' def sources(self, build): - sources = ['engine/enginebufferscalest.cpp', - '#lib/%s/SoundTouch.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/TDStretch.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/RateTransposer.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/AAFilter.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/FIFOSampleBuffer.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/FIRFilter.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/PeakFinder.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/BPMDetect.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/mmx_optimized.cpp' % self.SOUNDTOUCH_PATH, - '#lib/%s/sse_optimized.cpp' % self.SOUNDTOUCH_PATH,] - - # SoundTouch CPU optimizations are only for x86 - # architectures. SoundTouch automatically ignores these files when it is - # not being built for an architecture that supports them. - cpu_detection = '#lib/%s/cpu_detect_x86_win.cpp' if build.toolchain_is_msvs else '#lib/%s/cpu_detect_x86_gcc.cpp' - sources.append(cpu_detection % self.SOUNDTOUCH_PATH) + sources = ['engine/enginebufferscalest.cpp'] return sources def configure(self, build, conf): if build.platform_is_windows: # Regardless of the bitwidth, ST checks for WIN32 build.env.Append(CPPDEFINES = 'WIN32') - build.env.Append(CPPPATH=['#lib/%s' % self.SOUNDTOUCH_PATH]) + if not conf.CheckLib(['SoundTouch','libSoundTouch']): + raise Exception('Did not find libSoundTouch.a, libSoundTouch.lib, or the libSoundTouch development header files - exiting!') + build.env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix', '/usr/local') + '/include/soundtouch']) + build.env.Append(LIBS='SoundTouch') class TagLib(Dependence): def configure(self, build, conf):