shithub: aubio

ref: 3f9e8e50f8c3d39d66461a0e53a739f78ebbddf8
dir: /examples/wscript_build/

View raw version
# vim:set syntax=python:

uselib = []
uselib += ['JACK']

utils_source = ['utils.c', 'jackio.c']
programs_source = ctx.path.ant_glob('*.c', excl = utils_source)

# build examples
bld(features = 'c',
      source = utils_source,
      includes = ['../src'],
      uselib = uselib,
      target = 'utilsio')

# loop over all *.c filenames in examples to build them all
for source_file in programs_source:
  bld(features = 'c cprogram',
      includes = '../src',
      lib = 'm',
      use = ['aubio', 'utilsio'],
      source = source_file,
      target = str(source_file).split('.')[0]
    )