Changeset cc81763


Ignore:
Timestamp:
Sep 5, 2015, 11:41:36 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
70ba6dd
Parents:
39c4721
Message:

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/io/audio_unit.c

    r39c4721 rcc81763  
    2020
    2121#include "config.h"
    22 #ifdef TARGET_OS_IPHONE
     22#ifdef HAVE_AUDIO_UNIT
    2323#include "aubio_priv.h"
    2424
     
    775775}
    776776
    777 #endif /* TARGET_OS_IPHONE */
     777#endif /* HAVE_AUDIO_UNIT */
  • 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.