ref: 3ad2ef6fdb1e7a5e3a67623334f4b54d35e3e3d8
dir: /examples/wscript_build/
# build examples defines = ['AUBIO_PREFIX="' + bld.env['AUBIO_PREFIX'] + '"'] defines += ['PACKAGE="' + bld.env['PACKAGE'] + '"'] extra_source = ['utils.c', 'sndfileio.c', 'jackio.c'] bld.new_task_gen(features = 'cc', includes = '../src', source = extra_source, uselib = ['LASH'], defines = defines, target = 'utils_io') # 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 extra_source: continue bld.new_task_gen(features = 'cc cprogram', add_objects = 'utils_io', includes = '../src', defines = defines, uselib = ['LASH', 'JACK', 'SNDFILE'], uselib_local = ['aubio'], source = target_name, # program name is filename.c without the .c target = target_name.split('.')[0])