Changeset a1da37f


Ignore:
Timestamp:
Feb 10, 2013, 1:54:32 AM (12 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:
b554e41
Parents:
c57ecd9
Message:

wscript: add ios build, do not build unit tests if cross-compiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rc57ecd9 ra1da37f  
    7474    ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox']
    7575
     76  if Options.platform == 'ios':
     77    ctx.env.CC = 'clang'
     78    ctx.env.LD = 'clang'
     79    ctx.env.LINK_CC = 'clang'
     80    SDKVER="6.1"
     81    DEVROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer"
     82    SDKROOT="%(DEVROOT)s/SDKs/iPhoneOS%(SDKVER)s.sdk" % locals()
     83    ctx.env.FRAMEWORK = ['CoreFoundation', 'AudioToolbox']
     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]
     88
    7689  # check for required headers
    7790  ctx.check(header_name='stdlib.h')
     
    183196
    184197  # add sub directories
    185   bld.recurse('src examples tests')
     198  bld.recurse('src examples')
     199  from waflib import Options
     200  import sys
     201  if Options.platform == sys.platform: bld.recurse('tests')
    186202
    187203  """
Note: See TracChangeset for help on using the changeset viewer.