feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 59cb451 was
fb5838a,
checked in by Paul Brossier <piem@piem.org>, 9 years ago
|
wscript, src/wscript_build: new build platform emscripten
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # vim:set syntax=python: |
---|
2 | |
---|
3 | uselib = [] |
---|
4 | uselib += ['FFTW3', 'FFTW3F'] |
---|
5 | uselib += ['SAMPLERATE'] |
---|
6 | uselib += ['SNDFILE'] |
---|
7 | uselib += ['AVCODEC'] |
---|
8 | uselib += ['AVFORMAT'] |
---|
9 | uselib += ['AVRESAMPLE'] |
---|
10 | uselib += ['AVUTIL'] |
---|
11 | uselib += ['BLAS'] |
---|
12 | |
---|
13 | # build each source files |
---|
14 | source = ctx.path.ant_glob('*.c **/*.c') |
---|
15 | ctx(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) |
---|
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 = ['cshlib'] |
---|
27 | elif ctx.env['DEST_OS'] in ['emscripten']: |
---|
28 | build_features = ['cstlib'] |
---|
29 | else: #linux, darwin, android, mingw, ... |
---|
30 | build_features = ['cshlib', 'cstlib'] |
---|
31 | |
---|
32 | for target in build_features: |
---|
33 | ctx(features = 'c ' + target, |
---|
34 | use = ['lib_objects'], |
---|
35 | uselib = uselib, |
---|
36 | lib = 'm', |
---|
37 | target = 'aubio', |
---|
38 | vnum = ctx.env['LIB_VERSION']) |
---|
39 | |
---|
40 | # install headers, except _priv.h ones |
---|
41 | ctx.install_files('${PREFIX}/include/aubio/', |
---|
42 | ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']), |
---|
43 | relative_trick=True) |
---|
Note: See
TracBrowser
for help on using the repository browser.