source: src/wscript_build @ a9eb93e

feature/cnnfeature/crepefeature/pitchshiftfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretch
Last change on this file since a9eb93e was 0015a54, checked in by Paul Brossier <piem@piem.org>, 8 years ago

src/wscript_build: add rubberband if found

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# vim:set syntax=python:
2
3uselib = []
4uselib += ['M']
5uselib += ['FFTW3', 'FFTW3F']
6uselib += ['SAMPLERATE']
7uselib += ['SNDFILE']
8uselib += ['RUBBERBAND']
9uselib += ['AVCODEC']
10uselib += ['AVFORMAT']
11uselib += ['AVRESAMPLE']
12uselib += ['AVUTIL']
13uselib += ['BLAS']
14
15source = ctx.path.ant_glob('*.c **/*.c')
16
17ctx(features = 'c',
18        source = source,
19        includes = ['.'],
20        use = uselib,
21        target = 'lib_objects')
22
23# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
24if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
25    build_features = ['cstlib', 'cshlib']
26elif ctx.env['DEST_OS'] in ['win32', 'win64']:
27    build_features = ['cstlib', 'cshlib']
28elif ctx.env['DEST_OS'] in ['emscripten']:
29    build_features = ['cstlib']
30else: #linux, darwin, android, mingw, ...
31    build_features = ['cstlib', 'cshlib']
32
33for target in build_features:
34    ctx(features = 'c ' + target,
35            use = uselib + ['lib_objects'],
36            target = 'aubio',
37            vnum = ctx.env['LIB_VERSION'])
38
39# install headers, except _priv.h ones
40ctx.install_files('${PREFIX}/include/aubio/',
41        ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
42        relative_trick=True)
Note: See TracBrowser for help on using the repository browser.