#! /usr/bin/env python
# encoding: utf-8

test_programs = {
    'synchroClient': ['testSynchroClient.cpp'],
    'synchroServer': ['testSynchroServer.cpp'],
    'synchroServerClient': ['testSynchroServerClient.cpp'],
    'testSem': ['testSem.cpp'],
    'jack_test': ['jack_test.cpp'],
    }

def build(bld):
    for test_program, test_program_sources in test_programs.items():
        prog = bld.create_obj('cpp', 'program')
        prog.features.append('cc')
        prog.includes = ['../common/jack', '../common']
        prog.source = test_program_sources
        prog.uselib = 'RT'
        prog.uselib_local = 'clientlib'
        prog.target = test_program
