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