wscript: Add --disable-$x inverses of the --enable-$x options
authorW. Trevor King <wking@tremily.us>
Thu, 18 Apr 2013 14:15:01 +0000 (10:15 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 18 Apr 2013 14:34:06 +0000 (10:34 -0400)
This is the first step in supporting users who want to avoid building
aubio with an external dependency, even if they have that dependency
installed at build-time.

wscript

diff --git a/wscript b/wscript
index 8be9e6733b9053c968f29ceaebf40add2588673c..ce6ee8bf6412c8098238d2dd4976699673e8814a 100644 (file)
--- a/wscript
+++ b/wscript
@@ -33,20 +33,44 @@ out = 'build'
 def options(ctx):
   ctx.add_option('--enable-double', action='store_true', default=False,
       help='compile aubio in double precision mode')
+  ctx.add_option('--disable-double', dest='enable_double',
+      action='store_false',
+      help='compile aubio in single precision mode')
   ctx.add_option('--enable-fftw3f', action='store_true', default=False,
       help='compile with fftw3f instead of ooura (recommended)')
+  ctx.add_option('--disable-fftw3f', dest='enable_fftw3f',
+  ctx.add_option('--enable-fftw3', action='store_true', default=None,
+      help='compile with fftw3 instead of ooura (recommended)')
+  ctx.add_option('--disable-fftw3', dest='enable_fftw3',
+      action='store_false',
+      help='compile with ooura instead of fftw3f')
   ctx.add_option('--enable-fftw3', action='store_true', default=False,
       help='compile with fftw3 instead of ooura (recommended in double precision)')
+  ctx.add_option('--disable-fftw3', dest='enable-fftw3', action='store_false'.
+      help='compile with ooura instead of fftw3')
   ctx.add_option('--enable-complex', action='store_true', default=False,
       help='compile with C99 complex')
+  ctx.add_option('--disable-complex', dest='enable_complex',
+      action='store_false',
+      help='compile without C99 complex')
   ctx.add_option('--enable-jack', action='store_true', default=None,
       help='compile with jack support')
+  ctx.add_option('--disable-jack', dest='enable_jack', action='store_false',
+      help='compile without jack support')
   ctx.add_option('--enable-lash', action='store_true', default=None,
       help='compile with lash support')
+  ctx.add_option('--disable-lash', dest='enable_lash', action='store_false',
+      help='compile without lash support')
   ctx.add_option('--enable-sndfile', action='store_true', default=None,
       help='compile with libsndfile support')
+  ctx.add_option('--disable-sndfile', dest='enable_sndfile',
+      action='store_false',
+      help='compile without libsndfile support')
   ctx.add_option('--enable-samplerate', action='store_true', default=None,
       help='compile with libsamplerate support')
+  ctx.add_option('--disable-samplerate', dest='enable_samplerate',
+      action='store_false',
+      help='compile without libsamplerate support')
   ctx.add_option('--with-target-platform', type='string',
       help='set target platform for cross-compilation', dest='target_platform')
   ctx.load('compiler_c')