From 427f2798b99922faa0c50110f50e16e031c0ca6d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 18 Apr 2013 10:15:01 -0400 Subject: [PATCH] wscript: Add --disable-$x inverses of the --enable-$x options 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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/wscript b/wscript index 8be9e673..ce6ee8bf 100644 --- 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') -- 2.26.2