Changeset cc81763 for wscript


Ignore:
Timestamp:
Sep 5, 2015, 11:41:36 AM (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:
70ba6dd
Parents:
39c4721
Message:

wscript: add option to not build with CoreAudio/AudioToolbox?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r39c4721 rcc81763  
    7979            help_str = 'use Accelerate framework (darwin only) (auto)',
    8080            help_disable_str = 'do not use Accelerate framework')
     81    add_option_enable_disable(ctx, 'apple-audio', default = None,
     82            help_str = 'use CoreFoundation (darwin only) (auto)',
     83            help_disable_str = 'do not use CoreFoundation framework')
    8184
    8285    ctx.add_option('--with-target-platform', type='string',
     
    114117
    115118    if target_platform in [ 'darwin', 'ios', 'iosimulator']:
    116         ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox']
    117         ctx.define('HAVE_SOURCE_APPLE_AUDIO', 1)
    118         ctx.define('HAVE_SINK_APPLE_AUDIO', 1)
     119        if (ctx.options.enable_apple_audio != False):
     120            ctx.env.FRAMEWORK += ['CoreFoundation', 'AudioToolbox']
     121            ctx.define('HAVE_SOURCE_APPLE_AUDIO', 1)
     122            ctx.define('HAVE_SINK_APPLE_AUDIO', 1)
    119123        if (ctx.options.enable_accelerate != False):
    120124            ctx.define('HAVE_ACCELERATE', 1)
     
    122126
    123127    if target_platform in [ 'ios', 'iosimulator' ]:
    124         ctx.define('TARGET_OS_IPHONE', 1)
    125128        MINSDKVER="6.1"
    126129        ctx.env.CFLAGS += ['-std=c99']
     130        if (ctx.options.enable_audio_unit != False):
     131            ctx.define('HAVE_AUDIO_UNIT', 1)
     132            #ctx.env.FRAMEWORK += ['CoreFoundation', 'AudioToolbox']
    127133        if target_platform == 'ios':
    128134            DEVROOT = "/Applications/Xcode.app/Contents"
Note: See TracChangeset for help on using the changeset viewer.