Changeset 60fc05b for wscript


Ignore:
Timestamp:
Sep 5, 2015, 12:27:38 PM (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:
f264b17
Parents:
b257b60 (diff), f45dd12 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'develop' into notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rb257b60 r60fc05b  
    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')
     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')
    7884
    7985    ctx.add_option('--with-target-platform', type='string',
     
    111117
    112118    if target_platform in [ 'darwin', 'ios', 'iosimulator']:
    113         ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox', 'Accelerate']
    114         ctx.define('HAVE_SOURCE_APPLE_AUDIO', 1)
    115         ctx.define('HAVE_SINK_APPLE_AUDIO', 1)
    116         ctx.define('HAVE_ACCELERATE', 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)
     123        if (ctx.options.enable_accelerate != False):
     124            ctx.define('HAVE_ACCELERATE', 1)
     125            ctx.env.FRAMEWORK += ['Accelerate']
    117126
    118127    if target_platform in [ 'ios', 'iosimulator' ]:
    119         ctx.define('TARGET_OS_IPHONE', 1)
    120128        MINSDKVER="6.1"
    121129        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']
    122133        if target_platform == 'ios':
    123134            DEVROOT = "/Applications/Xcode.app/Contents"
     
    239250                args = '--cflags --libs', uselib_store = 'AVRESAMPLE',
    240251                mandatory = ctx.options.enable_avcodec)
    241         if all ( 'HAVE_' + i in ctx.env.define_key
     252        if all ( 'HAVE_' + i in ctx.env
    242253                for i in ['AVCODEC', 'AVFORMAT', 'AVUTIL', 'AVRESAMPLE'] ):
    243254            ctx.define('HAVE_LIBAV', 1)
Note: See TracChangeset for help on using the changeset viewer.