1 # vim:set syntax=python:
7 includes = ['../src', '.']
8 programs_sources = ctx.path.ant_glob('src/**/*.c')
10 test_sound_target = '44100Hz_44100f_sine441_stereo.wav'
11 test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
12 # workaround to double escape backslash characters on windows
13 test_sound_abspath = str(test_sound_abspath).replace('\\', '\\\\')
15 bld(name='create_tests_source',
16 rule='python ${SRC} ${TGT}',
17 source='create_tests_source.py',
18 target=test_sound_target)
20 for source_file in programs_sources:
21 target = os.path.basename(os.path.splitext(str(source_file))[0])
22 bld(features = 'c cprogram test',
28 defines = ['AUBIO_UNSTABLE_API=1',
29 'AUBIO_TESTS_SOURCE={}'.format(test_sound_abspath)]