-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSConstruct
32 lines (26 loc) · 847 Bytes
/
SConstruct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
env = Environment()
debug = ARGUMENTS.get('debug', 0)
if int(debug):
env.Append(CXXFLAGS = '-g')
else:
env.Append(CXXFLAGS = '-O2')
env.Append(CXXFLAGS = "-Wall -Werror")
env.Append(CPPPATH = '.')
env.SharedLibrary("libbencode",
["Decoder.cpp",
"Encoder.cpp",
"Tokenizer.cpp",
"PrettyPrinter.cpp"],
LIBS = ["libboost_regex-mt"])
env.Program("tester",
["tests/main.cpp",
"tests/TestDecoder.cpp",
"tests/TestEncoder.cpp",
"tests/TestTokenizer.cpp",
"tests/TestValueTypes.cpp"],
LIBS = ["libbencode", "cppunit"],
LIBPATH='.')
env.Program("printvalues",
["examples/printvalues.cpp"],
LIBS = ["libbencode"],
LIBPATH='.')