From d62c32f0b49643115db1e823ed3cbf47ef1aa1d0 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 9 Jul 2012 15:36:16 -0700 Subject: [PATCH] examples/wscript_build: update --- examples/wscript_build | 45 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/examples/wscript_build b/examples/wscript_build index e3b1a81c..ec55aca4 100644 --- a/examples/wscript_build +++ b/examples/wscript_build @@ -1,24 +1,25 @@ -if bld.env['SNDFILE']: - # build examples - sndfileio = bld.new_task_gen(features = 'c', - includes = '../src', - source = ['sndfileio.c'], - target = 'sndfileio') +# vim:set syntax=python: + +# build examples +sndfileio = bld.new_task_gen(features = 'c', + includes = '../src', + source = ['sndfileio.c'], + target = 'sndfileio') - utilsio = bld.new_task_gen(features = 'c', - includes = '../src', - add_objects = 'sndfileio', - source = ['utils.c', 'jackio.c'], - uselib = ['LASH', 'JACK', 'SNDFILE'], - target = 'utilsio') +utilsio = bld.new_task_gen(name = 'utilsio', features = 'c', + includes = '../src', + add_objects = 'sndfileio', + source = ['utils.c', 'jackio.c'], + uselib = ['LASH', 'JACK', 'SNDFILE'], + target = 'utilsio') - # loop over all *.c filenames in examples to build them all - for target_name in bld.path.ant_glob('*.c', excl = ['utils.c', 'jackio.c', 'sndfileio.c']): - bld.new_task_gen(features = 'c cprogram', - add_objects = 'utilsio', - includes = '../src', - uselib = ['LASH', 'JACK', 'SNDFILE'], - use = 'aubio', - source = target_name, - # program name is filename.c without the .c - target = str(target_name).split('.')[0]) +# loop over all *.c filenames in examples to build them all +for target_name in bld.path.ant_glob('*.c', excl = ['utils.c', 'jackio.c', 'sndfileio.c']): + bld.new_task_gen(features = 'c cprogram', + add_objects = 'utilsio', + includes = '../src', + uselib = ['LASH', 'JACK', 'SNDFILE'], + use = 'aubio', + source = target_name, + # program name is filename.c without the .c + target = str(target_name).split('.')[0]) -- 2.26.2