source: src/wscript_build @ 6514bb6

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 6514bb6 was 30250de, checked in by Paul Brossier <piem@piem.org>, 12 years ago

wscript: build a static lib for iphone, add a message about licensing

  • Property mode set to 100644
File size: 766 bytes
Line 
1# vim:set syntax=python:
2
3source = ctx.path.ant_glob('*.c **/*.c')
4uselib = []
5
6if 'HAVE_FFTW3' in conf.get_env():
7  source.filter(lambda x: not x.endswith('ooura_fft8g.c'))
8  uselib += ['FFTW3', 'FFTW3F']
9
10if 'HAVE_SAMPLERATE':
11  uselib += ['SAMPLERATE']
12
13if 'HAVE_SNDFILE':
14  uselib += ['SNDFILE']
15
16# build libaubio
17from waflib import Options
18if Options.platform == 'ios': build_lib_func = ctx.stlib
19else: build_lib_func = ctx.shlib
20build_lib_func(
21    includes = ['.'],
22    source = source,
23    target = 'aubio',
24    lib = 'm',
25    uselib = uselib,
26    vnum = ctx.env['LIB_VERSION'])
27
28# install headers, except _priv.h ones
29ctx.install_files('${PREFIX}/include/aubio/',
30
31    ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']),
32    relative_trick=True)
Note: See TracBrowser for help on using the repository browser.