wscript: build a static lib for iphone, add a message about licensing
authorPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 18:24:38 +0000 (13:24 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 18:24:38 +0000 (13:24 -0500)
src/wscript_build
wscript

index 1fa905d7244cc6a805a534d6cbd1c110acd79d23..ed9ef3895b4ca22444d9903dc5cf08397f0ec84a 100644 (file)
@@ -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 8704ae03037eb7781a584ac365018d99801b2e1c..f78f89d0609316809fd5b5532fc4f122df89e764 100644 (file)
--- 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 <piem@aubio.org>'
+          Logs.pprint('RED', msg)