ref: d62c32f0b49643115db1e823ed3cbf47ef1aa1d0
parent: dda6ba6b4a25ce34d40ce3f4b0c14ca2c95bc32a
author: Paul Brossier <piem@piem.org>
date: Mon Jul 9 11:36:16 EDT 2012
examples/wscript_build: update
--- 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:
- utilsio = bld.new_task_gen(features = 'c',
- includes = '../src',
- add_objects = 'sndfileio',
- source = ['utils.c', 'jackio.c'],
- uselib = ['LASH', 'JACK', 'SNDFILE'],
- target = 'utilsio')
+# build examples
+sndfileio = bld.new_task_gen(features = 'c',
+ includes = '../src',
+ source = ['sndfileio.c'],
+ target = 'sndfileio')
- # 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])
+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])