shithub: aubio

Download patch

ref: 7fd18319eaf8503ba4834939291d8ab1f98e77a8
parent: f6ee1606c56bb497f61231d271f40064decbc38f
author: Paul Brossier <piem@piem.org>
date: Thu Nov 21 15:09:53 EST 2013

src/wscript_build: really build both targets

--- a/src/wscript_build
+++ b/src/wscript_build
@@ -17,15 +17,16 @@
 
 # build libaubio.so (cshlib) and/or libaubio.a (cstlib)
 if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
-    build_features = ['c', 'cstlib']
+    build_features = ['cstlib']
 else: #linux, darwin, android, mingw, ...
-    build_features = ['c', 'cshlib', 'cstlib']
+    build_features = ['cshlib', 'cstlib']
 
-ctx(features = build_features,
-    use = ['lib_objects'], #source = source,
-    target = 'aubio',
-    install_path = '${PREFIX}/lib',
-    vnum = ctx.env['LIB_VERSION'])
+for target in build_features:
+  ctx(features = 'c ' + target,
+      use = ['lib_objects'], #source = source,
+      target = 'aubio',
+      install_path = '${PREFIX}/lib',
+      vnum = ctx.env['LIB_VERSION'])
 
 # install headers, except _priv.h ones
 ctx.install_files('${PREFIX}/include/aubio/',