source: src/wscript_build @ 00819aa

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 00819aa 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
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3uselib = []
[0318cc1]4uselib += ['FFTW3', 'FFTW3F']
5uselib += ['SAMPLERATE']
6uselib += ['SNDFILE']
[ba0ba10]7uselib += ['AVCODEC']
8uselib += ['AVFORMAT']
9uselib += ['AVRESAMPLE']
10uselib += ['AVUTIL']
[f0ce36a1]11uselib += ['BLAS']
[eae5898]12
[dc0e759]13# build each source files
14source = ctx.path.ant_glob('*.c **/*.c')
[985a5d1]15ctx(features = 'c',
[dc0e759]16        source = source,
17        includes = ['.'],
18        uselib = uselib,
19        lib = 'm',
20        target = 'lib_objects')
[afbd7e7]21
[985a5d1]22# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
[19ddbf3]23if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
[a90e9d4]24    build_features = ['cstlib', 'cshlib']
[06dba46]25elif ctx.env['DEST_OS'] in ['win32', 'win64']:
26    build_features = ['cshlib']
[fb5838a]27elif ctx.env['DEST_OS'] in ['emscripten']:
28    build_features = ['cstlib']
[cdfc394]29else: #linux, darwin, android, mingw, ...
[7fd1831]30    build_features = ['cshlib', 'cstlib']
[b712146]31
[7fd1831]32for target in build_features:
[dc0e759]33    ctx(features = 'c ' + target,
34            use = ['lib_objects'],
[6d7acc8]35            uselib = uselib,
[dc0e759]36            lib = 'm',
37            target = 'aubio',
38            vnum = ctx.env['LIB_VERSION'])
[000b090]39
40# install headers, except _priv.h ones
[d41bc4d]41ctx.install_files('${PREFIX}/include/aubio/',
[dc0e759]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.