source: src/wscript_build @ 8fcbd37

sampler
Last change on this file since 8fcbd37 was 8fcbd37, checked in by Paul Brossier <piem@piem.org>, 7 years ago

wscript: check for pthread.h libpthread

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# vim:set syntax=python:
2
3uselib = []
4uselib += ['M']
5uselib += ['FFTW3', 'FFTW3F']
6uselib += ['SAMPLERATE']
7uselib += ['SNDFILE']
8uselib += ['RUBBERBAND']
9uselib += ['AVCODEC']
10uselib += ['AVFORMAT']
11uselib += ['AVRESAMPLE']
12uselib += ['AVUTIL']
13uselib += ['BLAS']
14uselib += ['PTHREAD']
15
16source = ctx.path.ant_glob('*.c **/*.c')
17
18ctx(features = 'c',
19        source = source,
20        includes = ['.'],
21        use = uselib,
22        target = 'lib_objects')
23
24# build libaubio.so (cshlib) and/or libaubio.a (cstlib)
25if ctx.env['DEST_OS'] in ['ios', 'iosimulator']:
26    build_features = ['cstlib', 'cshlib']
27elif ctx.env['DEST_OS'] in ['win32', 'win64']:
28    build_features = ['cstlib', 'cshlib']
29elif ctx.env['DEST_OS'] in ['emscripten']:
30    build_features = ['cstlib']
31else: #linux, darwin, android, mingw, ...
32    build_features = ['cstlib', 'cshlib']
33
34for target in build_features:
35    ctx(features = 'c ' + target,
36            use = uselib + ['lib_objects'],
37            target = 'aubio',
38            vnum = ctx.env['LIB_VERSION'])
39
40# install headers, except _priv.h ones
41ctx.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.