use waf as new build system
[aubio.git] / examples / wscript_build
1 # build examples
2
3 # loop over all *.c filenames in examples to build them all
4 for 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]