source: src/wscript_build @ db86a46

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

src/wscript_build, examples/wscipt_build: add uselib to targets

  • Property mode set to 100644
File size: 1.1 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']
[eae5898]11
[dc0e759]12# build each source files
13source = ctx.path.ant_glob('*.c **/*.c')
[985a5d1]14ctx(features = 'c',
[dc0e759]15        source = source,
16        includes = ['.'],
17        uselib = uselib,
18        lib = 'm',
19        target = 'lib_objects')
[afbd7e7]20
[985a5d1]21# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
[19ddbf3]22if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
[7fd1831]23    build_features = ['cstlib']
[06dba46]24elif ctx.env['DEST_OS'] in ['win32', 'win64']:
25    build_features = ['cshlib']
[cdfc394]26else: #linux, darwin, android, mingw, ...
[7fd1831]27    build_features = ['cshlib', 'cstlib']
[b712146]28
[7fd1831]29for target in build_features:
[dc0e759]30    ctx(features = 'c ' + target,
31            use = ['lib_objects'],
[6d7acc8]32            uselib = uselib,
[dc0e759]33            lib = 'm',
34            target = 'aubio',
35            vnum = ctx.env['LIB_VERSION'])
[000b090]36
37# install headers, except _priv.h ones
[d41bc4d]38ctx.install_files('${PREFIX}/include/aubio/',
[dc0e759]39        ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
40        relative_trick=True)
Note: See TracBrowser for help on using the repository browser.