1 # vim:set syntax=python:
5 uselib += ['FFTW3', 'FFTW3F']
6 uselib += ['SAMPLERATE']
10 uselib += ['AVRESAMPLE']
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 = ['cstlib', 'cshlib']
27 elif ctx.env['DEST_OS'] in ['emscripten']:
28 build_features = ['cstlib']
29 elif '--static' in ctx.env['LDFLAGS'] or '--static' in ctx.env['LINKFLAGS']:
30 # static in cflags, ...
31 build_features = ['cstlib']
33 # linux, darwin, android, mingw, ...
34 build_features = ['cstlib', 'cshlib']
36 # also install static lib
37 from waflib.Tools.c import cstlib
38 from waflib.Tools.fc import fcstlib
39 fcstlib.inst_to = cstlib.inst_to = '${LIBDIR}'
41 for target in build_features:
42 ctx(features = 'c ' + target,
43 use = uselib + ['lib_objects'],
45 vnum = ctx.env['LIB_VERSION'])
47 # install headers, except _priv.h ones
48 ctx.install_files('${INCLUDEDIR}/aubio/',
49 ctx.path.ant_glob('**/*.h', excl = ['**_priv.h']),