shithub: aubio

ref: 8b8336beecd4b559555b94d44ff89bd940b6c45a
dir: /examples/wscript_build/

View raw version
# build examples

# loop over all *.c filenames in examples to build them all
for target_name in bld.path.ant_glob('*.c').split():
  # ignore utils.c
  if target_name in ['utils.c', 'jackio.c', 'sndfileio.c']: continue 
  bld.new_task_gen(features = 'cc cprogram', 
      add_objects = 'utilsio',
      includes = '../src',
      uselib = ['LASH', 'JACK', 'SNDFILE'],
      uselib_local = ['aubio'],
      source = target_name,
      # program name is filename.c without the .c
      target = target_name.split('.')[0])