summaryrefslogtreecommitdiff
path: root/tests/wscript_build
blob: 45e83b8ecf99ea4898fdc534da374ce1e9c82bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# vim:set syntax=python:

import os.path

uselib = ['aubio']

includes = ['../src', '.']
programs_sources = ctx.path.ant_glob('src/**/*.c')

for source_file in programs_sources:
    target = os.path.basename(os.path.splitext(str(source_file))[0])
    bld(features = 'c cprogram test',
            source = source_file,
            target = target,
            includes = includes,
            use = uselib,
            install_path = None,
            defines = 'AUBIO_UNSTABLE_API=1',
       )