From: Paul Brossier Date: Thu, 20 Aug 2015 11:19:19 +0000 (+0200) Subject: wscript: add option to disable accelerate X-Git-Tag: 0.4.4~301^2~25 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=0309a22bbcd79ffa95349b6b34afc2ef083bd960;p=aubio.git wscript: add option to disable accelerate --- diff --git a/wscript b/wscript index 3157f13d..03e00d69 100644 --- a/wscript +++ b/wscript @@ -75,6 +75,9 @@ def options(ctx): add_option_enable_disable(ctx, 'fat', default = False, help_str = 'build fat binaries (darwin only)', help_disable_str = 'do not build fat binaries (default)') + add_option_enable_disable(ctx, 'accelerate', default = None, + help_str = 'use Accelerate framework (darwin only) (auto)', + help_disable_str = 'do not use Accelerate framework') ctx.add_option('--with-target-platform', type='string', help='set target platform for cross-compilation', dest='target_platform') @@ -110,10 +113,12 @@ def configure(ctx): ctx.env.LINKFLAGS += ['-arch', 'i386', '-arch', 'x86_64'] if target_platform in [ 'darwin', 'ios', 'iosimulator']: - ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox', 'Accelerate'] + ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox'] ctx.define('HAVE_SOURCE_APPLE_AUDIO', 1) ctx.define('HAVE_SINK_APPLE_AUDIO', 1) - ctx.define('HAVE_ACCELERATE', 1) + if (ctx.options.enable_accelerate != False): + ctx.define('HAVE_ACCELERATE', 1) + ctx.env.FRAMEWORK += ['Accelerate'] if target_platform in [ 'ios', 'iosimulator' ]: ctx.define('TARGET_OS_IPHONE', 1)