feature/cnnfeature/crepefeature/pitchshiftfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretch
Last change
on this file since f6c4c1c was
ccc55bd,
checked in by Paul Brossier <piem@piem.org>, 9 years ago
|
src/wscript_build: use 'use =', simplify
|
-
Property mode set to
100644
|
File size:
1.1 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 += ['AVCODEC'] |
---|
9 | uselib += ['AVFORMAT'] |
---|
10 | uselib += ['AVRESAMPLE'] |
---|
11 | uselib += ['AVUTIL'] |
---|
12 | uselib += ['BLAS'] |
---|
13 | |
---|
14 | source = ctx.path.ant_glob('*.c **/*.c') |
---|
15 | |
---|
16 | ctx(features = 'c', |
---|
17 | source = source, |
---|
18 | includes = ['.'], |
---|
19 | use = uselib, |
---|
20 | target = 'lib_objects') |
---|
21 | |
---|
22 | # build libaubio.so (cshlib) and/or libaubio.a (cstlib) |
---|
23 | if ctx.env['DEST_OS'] in ['ios', 'iosimulator']: |
---|
24 | build_features = ['cstlib', 'cshlib'] |
---|
25 | elif ctx.env['DEST_OS'] in ['win32', 'win64']: |
---|
26 | build_features = ['cstlib', 'cshlib'] |
---|
27 | elif ctx.env['DEST_OS'] in ['emscripten']: |
---|
28 | build_features = ['cstlib'] |
---|
29 | else: #linux, darwin, android, mingw, ... |
---|
30 | build_features = ['cstlib', 'cshlib'] |
---|
31 | |
---|
32 | for target in build_features: |
---|
33 | ctx(features = 'c ' + target, |
---|
34 | use = uselib + ['lib_objects'], |
---|
35 | target = 'aubio', |
---|
36 | vnum = ctx.env['LIB_VERSION']) |
---|
37 | |
---|
38 | # install headers, except _priv.h ones |
---|
39 | ctx.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.