Correct JackNetDriver initialization.
[jack2.git] / tests / wscript
blobdaf94ceb73efe8d214f006c3b536aa87bb4f9344
1 #! /usr/bin/env python
2 # encoding: utf-8
4 test_programs = {
5 #'synchroClient': ['testSynchroClient.cpp'],
6 #'synchroServer': ['testSynchroServer.cpp'],
7 #'synchroServerClient': ['testSynchroServerClient.cpp'],
8 'testSem': ['testSem.cpp'],
9 'jack_test': ['jack_test.cpp'],
10 'jack_cpu': ['jack_cpu.c'],
13 def build(bld):
14 for test_program, test_program_sources in test_programs.items():
15 prog = bld.create_obj('cpp', 'program')
16 prog.features.append('cc')
17 prog.includes = ['../macosx', '../common/jack', '../common']
18 prog.source = test_program_sources
19 if bld.env()['IS_LINUX']:
20 prog.uselib = 'RT'
21 if bld.env()['IS_MACOSX']:
22 prog.env.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch ppc")
23 #prog.env.append_value("LINKFLAGS", "-arch i386 -arch ppc")
24 prog.env.append_value("LINKFLAGS", "")
25 prog.uselib_local = 'clientlib'
26 prog.target = test_program
27 #if test_program != 'jack_test':
28 # prog.inst_var = 0