From 30250de50d9052818b1718826a7694d06062b9bd Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 1 Mar 2013 13:24:38 -0500 Subject: [PATCH] wscript: build a static lib for iphone, add a message about licensing --- src/wscript_build | 5 ++++- wscript | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/wscript_build b/src/wscript_build index 1fa905d7..ed9ef389 100644 --- a/src/wscript_build +++ b/src/wscript_build @@ -14,7 +14,10 @@ if 'HAVE_SNDFILE': uselib += ['SNDFILE'] # build libaubio -ctx.shlib( +from waflib import Options +if Options.platform == 'ios': build_lib_func = ctx.stlib +else: build_lib_func = ctx.shlib +build_lib_func( includes = ['.'], source = source, target = 'aubio', diff --git a/wscript b/wscript index 8704ae03..f78f89d0 100644 --- a/wscript +++ b/wscript @@ -227,3 +227,11 @@ def build(bld): bld.install_files('${PREFIX}/share/sounds/aubio/', 'sounds/woodblock.aiff') """ + +def shutdown(bld): + from waflib import Options, Logs + if Options.platform == 'ios': + msg ='aubio built for ios, contact the author for a commercial license' + Logs.pprint('RED', msg) + msg =' Paul Brossier ' + Logs.pprint('RED', msg) -- 2.26.2