Merge branch 'synth' into develop
[aubio.git] / src / wscript_build
index 5333b8a0126347cba257a7ef10395de1f546ff7b..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',
@@ -24,6 +27,6 @@ ctx.shlib(
 
 # install headers, except _priv.h ones
 ctx.install_files('${PREFIX}/include/aubio/',
-       ctx.path.ant_glob('**/*.h',
-       exclude = ['_priv.h', 'config.h']),
-       relative_trick=True)
+
+    ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
+    relative_trick=True)