source: src/wscript_build @ 6bd83c1

feature/cnnfeature/crepe
Last change on this file since 6bd83c1 was 05ed7f5, checked in by Paul Brossier <piem@piem.org>, 4 years ago

Merge branch 'feature/timestretch'

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[0e355f6]1# vim:set syntax=python:
2
[eae5898]3uselib = []
[ccc55bd]4uselib += ['M']
[0318cc1]5uselib += ['FFTW3', 'FFTW3F']
[379ef6c]6uselib += ['INTEL_IPP']
[0318cc1]7uselib += ['SAMPLERATE']
8uselib += ['SNDFILE']
[0015a54]9uselib += ['RUBBERBAND']
[ba0ba10]10uselib += ['AVCODEC']
11uselib += ['AVFORMAT']
[cd133ba]12uselib += ['SWRESAMPLE']
[ba0ba10]13uselib += ['AVRESAMPLE']
14uselib += ['AVUTIL']
[3efb631]15uselib += ['VORBISENC']
[1ba359c]16uselib += ['FLAC']
[f0ce36a1]17uselib += ['BLAS']
[eae5898]18
[dc0e759]19source = ctx.path.ant_glob('*.c **/*.c')
[ccc55bd]20
[985a5d1]21ctx(features = 'c',
[dc0e759]22        source = source,
23        includes = ['.'],
[ccc55bd]24        use = uselib,
[dc0e759]25        target = 'lib_objects')
[afbd7e7]26
[985a5d1]27# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
[19ddbf3]28if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
[a90e9d4]29    build_features = ['cstlib', 'cshlib']
[06dba46]30elif ctx.env['DEST_OS'] in ['win32', 'win64']:
[f2f9d8b]31    build_features = ['cstlib', 'cshlib gensyms']
[fb5838a]32elif ctx.env['DEST_OS'] in ['emscripten']:
[8f343e6]33    build_features = ['cstlib','cshlib']
[0ec7113]34elif '--static' in ctx.env['LDFLAGS'] or '--static' in ctx.env['LINKFLAGS']:
35    # static in cflags, ...
36    build_features = ['cstlib']
37else:
38    # linux, darwin, android, mingw, ...
[3bf80b9]39    build_features = ['cstlib', 'cshlib']
[b712146]40
[8698499]41# also install static lib
42from waflib.Tools.c import cstlib
[18ec142]43cstlib.inst_to = '${LIBDIR}'
[f2f9d8b]44
[7fd1831]45for target in build_features:
[dc0e759]46    ctx(features = 'c ' + target,
[ccc55bd]47            use = uselib + ['lib_objects'],
[dc0e759]48            target = 'aubio',
[8774047]49            export_symbols_regex=r'(?:.*aubio|fvec|lvec|cvec|fmat|new|del)_.*',
[dc0e759]50            vnum = ctx.env['LIB_VERSION'])
[000b090]51
52# install headers, except _priv.h ones
[0ec7113]53ctx.install_files('${INCLUDEDIR}/aubio/',
[dc0e759]54        ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
55        relative_trick=True)
Note: See TracBrowser for help on using the repository browser.