source: examples/wscript_build @ 000b090

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

use waf as new build system

  • Property mode set to 100644
File size: 710 bytes
Line 
1# build examples
2
3# loop over all *.c filenames in examples to build them all
4for target_name in bld.path.ant_glob('*.c').split():
5  # ignore aubioonset.c and utils.c
6  if target_name in ['utils.c']: continue
7  this_target = bld.new_task_gen(features = 'cc cprogram')
8  this_target.includes = '. ../src ../ext'
9  this_target.uselib = ['LASH']
10  this_target.uselib_local = ['aubio', 'aubioext']
11  this_target.defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"']
12  this_target.defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"']
13  # add utils.c as source file
14  this_target.source = [target_name, 'utils.c']
15  # program name is filename.c without the .c
16  this_target.target = target_name.split('.')[0]
Note: See TracBrowser for help on using the repository browser.