Changeset 4084cd8
- Timestamp:
- Oct 15, 2013, 7:06:15 PM (11 years ago)
- 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. - Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio.h
r2c2fe44 r4084cd8 185 185 #include "io/source.h" 186 186 #include "io/sink.h" 187 #include "io/audio_unit.h" 187 188 #include "synth/sampler.h" 188 189 -
src/wscript_build
r2c2fe44 r4084cd8 12 12 # build libaubio 13 13 from waflib import Options 14 if Options.platform == 'ios': build_lib_func = ctx.stlib 15 else: build_lib_func = ctx.shlib 14 if Options.platform == 'ios': 15 build_lib_func = ctx.stlib 16 else: 17 build_lib_func = ctx.shlib 18 16 19 build_lib_func( 17 20 includes = ['.'], … … 25 28 # install headers, except _priv.h ones 26 29 ctx.install_files('${PREFIX}/include/aubio/', 27 28 30 ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']), 29 31 relative_trick=True) -
wscript
r2c2fe44 r4084cd8 73 73 ctx.define('HAVE_ACCELERATE', 1) 74 74 75 if Options.platform == 'ios':75 if Options.platform in [ 'ios', 'iosimulator' ]: 76 76 ctx.env.CC = 'clang' 77 77 ctx.env.LD = 'clang' 78 78 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'] 79 82 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] 88 103 89 104 # check for required headers … … 178 193 bld.recurse('src') 179 194 from waflib import Options 180 if Options.platform != 'ios':195 if Options.platform not in ['ios', 'iosimulator']: 181 196 bld.recurse('examples') 182 197 bld.recurse('tests') … … 212 227 def shutdown(bld): 213 228 from waflib import Options, Logs 214 if Options.platform == 'ios':229 if Options.platform in ['ios', 'iosimulator']: 215 230 msg ='aubio built for ios, contact the author for a commercial license' 216 231 Logs.pprint('RED', msg)
Note: See TracChangeset
for help on using the changeset viewer.