1 # vim:set syntax=python:
4 uselib += ['FFTW3', 'FFTW3F']
5 uselib += ['SAMPLERATE']
9 uselib += ['AVRESAMPLE']
12 # build each source files
13 source = ctx.path.ant_glob('*.c **/*.c')
19 target = 'lib_objects')
21 # build libaubio.so (cshlib) and/or libaubio.a (cstlib)
22 if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
23 build_features = ['cstlib']
24 elif ctx.env['DEST_OS'] in ['win32', 'win64']:
25 build_features = ['cshlib']
26 else: #linux, darwin, android, mingw, ...
27 build_features = ['cshlib', 'cstlib']
29 for target in build_features:
30 ctx(features = 'c ' + target,
31 use = ['lib_objects'],
34 vnum = ctx.env['LIB_VERSION'])
36 # install headers, except _priv.h ones
37 ctx.install_files('${PREFIX}/include/aubio/',
38 ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),