wscript 983 Bytes
Newer Older
nedko's avatar
nedko committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /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')
sletz's avatar
sletz committed
16
        prog.includes = ['../macosx', '../common/jack', '../common']
nedko's avatar
nedko committed
17
        prog.source = test_program_sources
sletz's avatar
sletz committed
18
19
        if bld.env()['IS_LINUX']:
            prog.uselib = 'RT'
20
21
22
        if bld.env()['IS_MACOSX']:
            prog.env.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch ppc")
            prog.env.append_value("LINKFLAGS", "-arch i386 -arch ppc")
nedko's avatar
nedko committed
23
24
        prog.uselib_local = 'clientlib'
        prog.target = test_program
25
26
        if test_program != 'jack_test':
            prog.inst_var = 0