ref: d4c09320c569a1e7e2c646978e37b06a2f34b774
dir: /src/wscript_build/
# vim:set syntax=python: source = ctx.path.ant_glob('*.c **/*.c') uselib = [] uselib += ['FFTW3', 'FFTW3F'] uselib += ['SAMPLERATE'] uselib += ['SNDFILE'] uselib += ['JACK'] uselib += ['LASH'] ctx(features = 'c', 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']: build_features = ['c', 'cstlib'] else: #linux, darwin, android, mingw, ... build_features = ['c', 'cshlib', 'cstlib'] ctx(features = build_features, use = ['lib_objects'], #source = source, 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)