ref: 2e4fb04084c09663b1f149a23d060925c3530ca9
parent: 16ed72626ee659b4dd572797bb54ff0c504f9844
author: Paul Brossier <piem@piem.org>
date: Thu Nov 5 18:21:32 EST 2009
wscript: add option to disable libsamplerate
--- a/wscript
+++ b/wscript
@@ -23,6 +23,8 @@
help='compile without jack support')
opt.add_option('--disable-lash', action='store_true', default=False,
help='compile without lash support')
+ opt.add_option('--disable-libsamplerate', action='store_true', default=False,
+ help='compile without libsamplerate support')
opt.add_option('--with-target-platform', type='string',
help='set target platform for cross-compilation', dest='target_platform')
opt.tool_options('compiler_cc')
@@ -54,11 +56,12 @@
if (Options.options.enable_complex == True):
conf.check(header_name='complex.h')
- # required dependancies
+ # check dependencies
conf.check_cfg(package = 'sndfile', atleast_version = '1.0.4',
args = '--cflags --libs')
- conf.check_cfg(package = 'samplerate', atleast_version = '0.0.15',
- args = '--cflags --libs')
+ if (Options.options.disable_libsamplerate == False):
+ conf.check_cfg(package = 'libsamplerate', atleast_version = '0.0.15',
+ args = '--cflags --libs')
# double precision mode
if (Options.options.enable_double == True):