Use Linux-like indentation in mptp.c
[swifty.git] / src / libswift / tests / SConscript
1 import sys
2 import os
3
4 Import("DEBUG")
5 Import("env")
6 Import("libs")
7 Import("libpath")
8
9
10 if DEBUG and sys.platform == "win32":
11         libs = ['libswift','gtestd'] + libs  # order is important, crypto needs to be last
12 else:
13         libs = ['libswift','gtest'] + libs  # order is important, crypto needs to be last
14
15 cpppath = env["CPPPATH"]
16 if sys.platform == "win32":
17         cpppath += '..;'
18 else:
19         cpppath += '..:'
20 env.Append(CPPPATH=cpppath)
21
22 env.Program( 
23     target='binstest2',
24     source=['binstest2.cpp'],
25     CPPPATH=cpppath,
26     LIBS=libs,
27     LIBPATH=libpath+':..' )
28
29 env.Program( 
30     target='binstest3',
31     source=['binstest3.cpp'],
32     CPPPATH=cpppath,
33     LIBS=libs,
34     LIBPATH=libpath+':..' )
35
36 env.Program( 
37     target='dgramtest',
38     source=['dgramtest.cpp'],
39     CPPPATH=cpppath,
40     LIBS=libs,
41     LIBPATH=libpath+':..' )
42
43 env.Program( 
44     target='hashtest',
45     source=['hashtest.cpp'],
46     CPPPATH=cpppath,
47     LIBS=libs,
48     LIBPATH=libpath+':..' )
49
50 # Arno: must be rewritten to libevent
51 #env.Program( 
52 #    target='ledbattest',
53 #    source=['ledbattest.cpp'],
54 #    CPPPATH=cpppath,
55 #    LIBS=libs,
56 #    LIBPATH=libpath )
57
58 # Arno: must be rewritten to libevent
59 #if sys.platform != "win32":
60 #    # Arno: Needs getopt
61 #    env.Program( 
62 #        target='ledbattest2',
63 #        source=['ledbattest2.cpp'],
64 #        CPPPATH=cpppath,
65 #        LIBS=libs,
66 #        LIBPATH=libpath )
67
68 env.Program( 
69     target='freemap',
70     source=['freemap.cpp'],
71     CPPPATH=cpppath,
72     LIBS=libs,
73     LIBPATH=libpath+':..' )
74
75 env.Program( 
76     target='bin64test',
77     source=['bin64test.cpp'],
78     CPPPATH=cpppath,
79     LIBS=libs,
80     LIBPATH=libpath+':..' )
81
82 env.Program( 
83     target='transfertest',
84     source=['transfertest.cpp'],
85     CPPPATH=cpppath,
86     LIBS=libs,
87     LIBPATH=libpath+':..' )
88
89 env.Program( 
90     target='connecttest',
91     source=['connecttest.cpp'],
92     CPPPATH=cpppath,
93     LIBS=libs,
94     LIBPATH=libpath+':..' )
95