From: Paul Brossier Date: Mon, 9 Jul 2012 22:36:16 +0000 (-0700) Subject: examples/wscript_build: update X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d62c32f0b49643115db1e823ed3cbf47ef1aa1d0;p=aubio.git examples/wscript_build: update --- 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])