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