Changeset 0309a22 for wscript


Ignore:
Timestamp:
Aug 20, 2015, 1:19:19 PM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
e4f8e57
Parents:
3c6f584
Message:

wscript: add option to disable accelerate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r3c6f584 r0309a22  
    7676            help_str = 'build fat binaries (darwin only)',
    7777            help_disable_str = 'do not build fat binaries (default)')
     78    add_option_enable_disable(ctx, 'accelerate', default = None,
     79            help_str = 'use Accelerate framework (darwin only) (auto)',
     80            help_disable_str = 'do not use Accelerate framework')
    7881
    7982    ctx.add_option('--with-target-platform', type='string',
     
    111114
    112115    if target_platform in [ 'darwin', 'ios', 'iosimulator']:
    113         ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox', 'Accelerate']
     116        ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox']
    114117        ctx.define('HAVE_SOURCE_APPLE_AUDIO', 1)
    115118        ctx.define('HAVE_SINK_APPLE_AUDIO', 1)
    116         ctx.define('HAVE_ACCELERATE', 1)
     119        if (ctx.options.enable_accelerate != False):
     120            ctx.define('HAVE_ACCELERATE', 1)
     121            ctx.env.FRAMEWORK += ['Accelerate']
    117122
    118123    if target_platform in [ 'ios', 'iosimulator' ]:
Note: See TracChangeset for help on using the changeset viewer.