ref: cdfc394d7182580d52bd355a74ee1188dbc392f1
parent: 985a5d1d1eb0cdc77b3b7e312719d264cf3ab841
author: Paul Brossier <piem@piem.org>
date: Tue Nov 19 18:56:47 EST 2013
src/wscript_build: simplify
--- a/src/wscript_build
+++ b/src/wscript_build
@@ -17,16 +17,15 @@
# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
- build_features = ['cstlib']
-else: #linux, darwin, android, windows, ...
- build_features = ['cshlib', 'cstlib']
+ build_features = ['c', 'cstlib']
+else: #linux, darwin, android, mingw, ...
+ build_features = ['c', 'cshlib', 'cstlib']
-for feat in build_features:
- ctx(features = 'c ' + feat,
- use = ['lib_objects'], #source = source,
- target = 'aubio',
- install_path = '${PREFIX}/lib',
- vnum = ctx.env['LIB_VERSION'])
+ctx(features = build_features,
+ 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/',