From 0309a22bbcd79ffa95349b6b34afc2ef083bd960 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 20 Aug 2015 13:19:19 +0200 Subject: [PATCH] wscript: add option to disable accelerate --- wscript | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) -- 2.11.0