source: examples/wscript_build @ 299ad52

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 299ad52 was 740f06b, checked in by Paul Brossier <piem@piem.org>, 15 years ago

ext/, examples/, swig/, python/, tests/: remove libaubioext, make libsamplerate optional

  • Property mode set to 100644
File size: 850 bytes
Line 
1# build examples
2
3defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"']
4defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"']
5
6extra_source = ['utils.c', 'sndfileio.c', 'jackio.c']
7
8bld.new_task_gen(features = 'cc',
9    includes = '../src',
10    source = extra_source,
11    uselib = ['LASH'],
12    defines = defines,
13    target = 'utils_io')
14
15# loop over all *.c filenames in examples to build them all
16for target_name in bld.path.ant_glob('*.c').split():
17  # ignore utils.c
18  if target_name in extra_source: continue
19  bld.new_task_gen(features = 'cc cprogram',
20      add_objects = 'utils_io',
21      includes = '../src',
22      defines = defines,
23      uselib = ['LASH', 'JACK', 'SNDFILE'],
24      uselib_local = ['aubio'],
25      source = target_name,
26      # program name is filename.c without the .c
27      target = target_name.split('.')[0])
Note: See TracBrowser for help on using the repository browser.