Changeset 4084cd8


Ignore:
Timestamp:
Oct 15, 2013, 7:06:15 PM (11 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:
0c77921
Parents:
2c2fe44 (diff), ef47246 (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 with develop

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/aubio.h

    r2c2fe44 r4084cd8  
    185185#include "io/source.h"
    186186#include "io/sink.h"
     187#include "io/audio_unit.h"
    187188#include "synth/sampler.h"
    188189
  • src/wscript_build

    r2c2fe44 r4084cd8  
    1212# build libaubio
    1313from waflib import Options
    14 if Options.platform == 'ios': build_lib_func = ctx.stlib
    15 else: build_lib_func = ctx.shlib
     14if Options.platform == 'ios':
     15    build_lib_func = ctx.stlib
     16else:
     17    build_lib_func = ctx.shlib
     18
    1619build_lib_func(
    1720    includes = ['.'],
     
    2528# install headers, except _priv.h ones
    2629ctx.install_files('${PREFIX}/include/aubio/',
    27 
    2830    ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
    2931    relative_trick=True)
  • wscript

    r2c2fe44 r4084cd8  
    7373    ctx.define('HAVE_ACCELERATE', 1)
    7474
    75   if Options.platform == 'ios':
     75  if Options.platform in [ 'ios', 'iosimulator' ]:
    7676    ctx.env.CC = 'clang'
    7777    ctx.env.LD = 'clang'
    7878    ctx.env.LINK_CC = 'clang'
     79    ctx.define('HAVE_ACCELERATE', 1)
     80    ctx.define('TARGET_OS_IPHONE', 1)
     81    ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox', 'Accelerate']
    7982    SDKVER="7.0"
    80     DEVROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer"
    81     SDKROOT="%(DEVROOT)s/SDKs/iPhoneOS%(SDKVER)s.sdk" % locals()
    82     ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox', 'Accelerate']
    83     ctx.define('HAVE_ACCELERATE', 1)
    84     ctx.env.CFLAGS += [ '-miphoneos-version-min=6.1', '-arch', 'armv7',
    85             '--sysroot=%s' % SDKROOT]
    86     ctx.env.LINKFLAGS += ['-std=c99', '-arch', 'armv7', '--sysroot=%s' %
    87             SDKROOT]
     83    MINSDKVER="6.1"
     84    if Options.platform == 'ios':
     85        DEVROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer"
     86        SDKROOT="%(DEVROOT)s/SDKs/iPhoneOS%(SDKVER)s.sdk" % locals()
     87        ctx.env.CFLAGS += [ '-arch', 'armv7' ]
     88        ctx.env.CFLAGS += [ '-arch', 'armv7s' ]
     89        ctx.env.LINKFLAGS += ['-arch', 'armv7']
     90        ctx.env.LINKFLAGS += ['-arch', 'armv7s']
     91    else:
     92        DEVROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer"
     93        SDKROOT="%(DEVROOT)s/SDKs/iPhoneSimulator%(SDKVER)s.sdk" % locals()
     94        ctx.env.CFLAGS += [ '-arch', 'i386' ]
     95        ctx.env.LINKFLAGS += ['-arch', 'i386']
     96        ctx.env.CFLAGS += [ '-arch', 'x86_64' ]
     97        ctx.env.LINKFLAGS += ['-arch', 'x86_64']
     98    ctx.env.CFLAGS += [ '-miphoneos-version-min=' + MINSDKVER ]
     99    ctx.env.CFLAGS += [ '--sysroot=%s' % SDKROOT]
     100    ctx.env.CFLAGS += ['-std=c99']
     101    ctx.env.LINKFLAGS += ['-std=c99']
     102    ctx.env.LINKFLAGS += ['--sysroot=%s' % SDKROOT]
    88103
    89104  # check for required headers
     
    178193  bld.recurse('src')
    179194  from waflib import Options
    180   if Options.platform != 'ios':
     195  if Options.platform not in ['ios', 'iosimulator']:
    181196      bld.recurse('examples')
    182197      bld.recurse('tests')
     
    212227def shutdown(bld):
    213228    from waflib import Options, Logs
    214     if Options.platform == 'ios':
     229    if Options.platform in ['ios', 'iosimulator']:
    215230          msg ='aubio built for ios, contact the author for a commercial license'
    216231          Logs.pprint('RED', msg)
Note: See TracChangeset for help on using the changeset viewer.