source: src/wscript_build @ dba9b33

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

{tests,src,examples}/wscript_build: indent

  • Property mode set to 100644
File size: 1.1 KB
Line 
1# vim:set syntax=python:
2
3uselib = []
4uselib += ['FFTW3', 'FFTW3F']
5uselib += ['SAMPLERATE']
6uselib += ['SNDFILE']
7uselib += ['AVCODEC']
8uselib += ['AVFORMAT']
9uselib += ['AVRESAMPLE']
10uselib += ['AVUTIL']
11
12# build each source files
13source = ctx.path.ant_glob('*.c **/*.c')
14ctx(features = 'c',
15        source = source,
16        includes = ['.'],
17        uselib = uselib,
18        lib = 'm',
19        target = 'lib_objects')
20
21# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
22if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
23    build_features = ['cstlib']
24elif ctx.env['DEST_OS'] in ['win32', 'win64']:
25    build_features = ['cshlib']
26else: #linux, darwin, android, mingw, ...
27    build_features = ['cshlib', 'cstlib']
28
29for target in build_features:
30    ctx(features = 'c ' + target,
31            use = ['lib_objects'],
32            lib = 'm',
33            target = 'aubio',
34            install_path = '${PREFIX}/lib',
35            vnum = ctx.env['LIB_VERSION'])
36
37# install headers, except _priv.h ones
38ctx.install_files('${PREFIX}/include/aubio/',
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.