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')
15 lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None
21 target = 'lib_objects')
23 # build libaubio.so (cshlib) and/or libaubio.a (cstlib)
24 if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
25 build_features = ['cstlib', 'cshlib']
26 elif ctx.env['DEST_OS'] in ['win32', 'win64']:
27 build_features = ['cstlib', 'cshlib']
28 elif ctx.env['DEST_OS'] in ['emscripten']:
29 build_features = ['cstlib']
30 else: #linux, darwin, android, mingw, ...
31 build_features = ['cstlib', 'cshlib']
33 for target in build_features:
34 ctx(features = 'c ' + target,
35 use = ['lib_objects'],
39 vnum = ctx.env['LIB_VERSION'])
41 # install headers, except _priv.h ones
42 ctx.install_files('${PREFIX}/include/aubio/',
43 ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),