source: src/wscript_build @ 90bd27a

feature/autosinkfeature/cnnfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/timestretchfix/ffmpeg5 0.4.9
Last change on this file since 90bd27a was 18ec142, checked in by Paul Brossier <piem@piem.org>, 7 years ago

waf_gensyms.py: move to own file

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