source: src/wscript_build @ b4e1438

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since b4e1438 was 25e2001, checked in by Paul Brossier <piem@piem.org>, 9 years ago

src/wscript_build: fix typo

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3uselib = []
[0318cc1]4uselib += ['FFTW3', 'FFTW3F']
5uselib += ['SAMPLERATE']
6uselib += ['SNDFILE']
[ba0ba10]7uselib += ['AVCODEC']
8uselib += ['AVFORMAT']
9uselib += ['AVRESAMPLE']
10uselib += ['AVUTIL']
[f0ce36a1]11uselib += ['BLAS']
[eae5898]12
[dc0e759]13# build each source files
14source = ctx.path.ant_glob('*.c **/*.c')
[6d7d52c]15lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None
[985a5d1]16ctx(features = 'c',
[dc0e759]17        source = source,
18        includes = ['.'],
19        uselib = uselib,
[58cffee]20        lib = lib,
[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, ...
[7fd1831]31    build_features = ['cshlib', 'cstlib']
[b712146]32
[7fd1831]33for target in build_features:
[dc0e759]34    ctx(features = 'c ' + target,
35            use = ['lib_objects'],
[6d7acc8]36            uselib = uselib,
[a9ec06f]37            lib = lib,
[dc0e759]38            target = 'aubio',
39            vnum = ctx.env['LIB_VERSION'])
[000b090]40
41# install headers, except _priv.h ones
[d41bc4d]42ctx.install_files('${PREFIX}/include/aubio/',
[dc0e759]43        ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
44        relative_trick=True)
Note: See TracBrowser for help on using the repository browser.