source: src/wscript_build @ d897aae

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

wscript: check if we find atlas/cblas.h

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