ref: dc0e759e1e74676d0df5846b357888b434f23d4e
parent: 584016fa7f782408b2242943c2e778ef4ebb5441
author: Paul Brossier <piem@piem.org>
date: Thu Mar 6 09:03:49 EST 2014
{tests,src,examples}/wscript_build: indent
--- a/examples/wscript_build
+++ b/examples/wscript_build
@@ -8,17 +8,17 @@
# build examples
bld(features = 'c',
- source = utils_source,
- includes = ['../src'],
- uselib = uselib,
- target = 'utilsio')
+ source = utils_source,
+ includes = ['../src'],
+ uselib = uselib,
+ target = 'utilsio')
# loop over all *.c filenames in examples to build them all
for source_file in programs_source:
- bld(features = 'c cprogram',
- includes = '../src',
- lib = 'm',
- use = ['aubio', 'utilsio'],
- source = source_file,
- target = str(source_file).split('.')[0]
- )
+ bld(features = 'c cprogram',
+ includes = '../src',
+ lib = 'm',
+ use = ['aubio', 'utilsio'],
+ source = source_file,
+ target = str(source_file).split('.')[0]
+ )
--- a/src/wscript_build
+++ b/src/wscript_build
@@ -1,6 +1,5 @@
# vim:set syntax=python:
-source = ctx.path.ant_glob('*.c **/*.c')
uselib = []
uselib += ['FFTW3', 'FFTW3F']
uselib += ['SAMPLERATE']
@@ -10,12 +9,14 @@
uselib += ['AVRESAMPLE']
uselib += ['AVUTIL']
+# build each source files
+source = ctx.path.ant_glob('*.c **/*.c')
ctx(features = 'c',
- source = source,
- includes = ['.'],
- uselib = uselib,
- lib = 'm',
- target = 'lib_objects')
+ source = source,
+ includes = ['.'],
+ uselib = uselib,
+ lib = 'm',
+ target = 'lib_objects')
# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
@@ -26,14 +27,14 @@
build_features = ['cshlib', 'cstlib']
for target in build_features:
- ctx(features = 'c ' + target,
- use = ['lib_objects'], #source = source,
- lib = 'm',
- target = 'aubio',
- install_path = '${PREFIX}/lib',
- vnum = ctx.env['LIB_VERSION'])
+ ctx(features = 'c ' + target,
+ use = ['lib_objects'],
+ lib = 'm',
+ target = 'aubio',
+ install_path = '${PREFIX}/lib',
+ vnum = ctx.env['LIB_VERSION'])
# install headers, except _priv.h ones
ctx.install_files('${PREFIX}/include/aubio/',
- ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
- relative_trick=True)
+ ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
+ relative_trick=True)
--- a/tests/wscript_build
+++ b/tests/wscript_build
@@ -1,18 +1,17 @@
# vim:set syntax=python:
for target_name in ctx.path.ant_glob('src/**/*.c'):
- uselib = []
- includes = ['../src', '.']
- extra_source = []
+ uselib = []
+ includes = ['../src', '.']
+ extra_source = []
- bld(features = 'c cprogram test',
- lib = 'm',
- uselib = uselib,
- source = [target_name] + extra_source,
- target = str(target_name).split('.')[0],
- includes = includes,
- install_path = None,
- defines = 'AUBIO_UNSTABLE_API=1',
- cflags = ['-g'],
- use = 'aubio')
-
+ bld(features = 'c cprogram test',
+ lib = 'm',
+ uselib = uselib,
+ source = [target_name] + extra_source,
+ target = str(target_name).split('.')[0],
+ includes = includes,
+ install_path = None,
+ defines = 'AUBIO_UNSTABLE_API=1',
+ cflags = ['-g'],
+ use = 'aubio')