source: tests/wscript_build @ 586383d

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since 586383d was 586383d, checked in by Paul Brossier <piem@piem.org>, 6 years ago

[tests] [win] more windows workaround to pass strings via -D

  • Property mode set to 100644
File size: 831 bytes
RevLine 
[6ed0f4e]1# vim:set syntax=python:
2
[281381f]3import os.path
4
[21def97]5uselib = ['aubio']
[58cffee]6
7includes = ['../src', '.']
[21def97]8programs_sources = ctx.path.ant_glob('src/**/*.c')
[58cffee]9
[505b49a]10test_sound_target = '44100Hz_44100f_sine441_stereo.wav'
11test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
12
[3569326]13bld(name='create_tests_source',
[505b49a]14    rule='python ${SRC} ${TGT}',
[3569326]15    source='create_tests_source.py',
[505b49a]16    target=test_sound_target)
17
[21def97]18for source_file in programs_sources:
[281381f]19    target = os.path.basename(os.path.splitext(str(source_file))[0])
[dc0e759]20    bld(features = 'c cprogram test',
[21def97]21            source = source_file,
[281381f]22            target = target,
[dc0e759]23            includes = includes,
[21def97]24            use = uselib,
[09fab95]25            install_path = None,
[505b49a]26            defines = ['AUBIO_UNSTABLE_API=1',
[586383d]27                        'AUBIO_TESTS_SOURCE={}'.format(test_sound_abspath)]
[21def97]28       )
Note: See TracBrowser for help on using the repository browser.