source: src/wscript_build @ 25a19c2

feature/cnnfeature/crepefeature/pitchshiftfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretch
Last change on this file since 25a19c2 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
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3uselib = []
[ccc55bd]4uselib += ['M']
[0318cc1]5uselib += ['FFTW3', 'FFTW3F']
6uselib += ['SAMPLERATE']
7uselib += ['SNDFILE']
[0015a54]8uselib += ['RUBBERBAND']
[ba0ba10]9uselib += ['AVCODEC']
10uselib += ['AVFORMAT']
11uselib += ['AVRESAMPLE']
12uselib += ['AVUTIL']
[f0ce36a1]13uselib += ['BLAS']
[eae5898]14
[dc0e759]15source = ctx.path.ant_glob('*.c **/*.c')
[ccc55bd]16
[985a5d1]17ctx(features = 'c',
[dc0e759]18        source = source,
19        includes = ['.'],
[ccc55bd]20        use = uselib,
[dc0e759]21        target = 'lib_objects')
[afbd7e7]22
[985a5d1]23# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
[19ddbf3]24if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
[a90e9d4]25    build_features = ['cstlib', 'cshlib']
[06dba46]26elif ctx.env['DEST_OS'] in ['win32', 'win64']:
[25e2001]27    build_features = ['cstlib', 'cshlib']
[fb5838a]28elif ctx.env['DEST_OS'] in ['emscripten']:
29    build_features = ['cstlib']
[cdfc394]30else: #linux, darwin, android, mingw, ...
[3bf80b9]31    build_features = ['cstlib', 'cshlib']
[b712146]32
[7fd1831]33for target in build_features:
[dc0e759]34    ctx(features = 'c ' + target,
[ccc55bd]35            use = uselib + ['lib_objects'],
[dc0e759]36            target = 'aubio',
37            vnum = ctx.env['LIB_VERSION'])
[000b090]38
39# install headers, except _priv.h ones
[d41bc4d]40ctx.install_files('${PREFIX}/include/aubio/',
[dc0e759]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.