shithub: aubio

ref: 95dc7f22aae8730b570fce5e226b6240a1b9e3e5
dir: /tests/wscript_build/

View raw version
# vim:set syntax=python:

for target_name in ctx.path.ant_glob('src/**/*.c'):
  uselib = []
  includes = ['../src', '.']
  extra_source = []
  if str(target_name).endswith('-jack.c') and ctx.env['JACK']:
    uselib += ['JACK']
    includes += ['../examples']
    extra_source += ['../examples/jackio.c']

  bld(features = 'c cprogram test',
      uselib = uselib,
      source = [target_name] + extra_source,
      target = str(target_name).split('.')[0],
      includes = includes,
      install_path = None,
      defines = 'AUBIO_UNSTABLE_API=1',
      cflags = ['-g'],
      use = 'aubio')