-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSConstruct
45 lines (43 loc) · 1.37 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FAS_CFLAGS = [
'-Wall',
'-static',
'-std=c++11'
]
StaticLibrary('./lib/fasutils',
Glob("utils/*.cpp"),
CPPPATH=['.', 'utils'],
CCFLAGS = FAS_CFLAGS
)
StaticLibrary('./lib/fas',
Glob("base/*.cpp"),
LIBPATH = ['lib'],
CPPPATH = ['.', 'utils', 'base'],
LIBS = ['fasutils', 'glog', 'jsoncpp', 'pthread'],
CCFLAGS = FAS_CFLAGS
)
StaticLibrary('./lib/fashttp',
Glob("http/*.cpp"),
LIBPATH = ['lib'],
CPPPATH = ['.', 'utils', 'base', 'http'],
LIBS = ['fasutils', 'fas', 'glog', 'jsoncpp', 'pthread'],
CCFLAGS = FAS_CFLAGS
)
StaticLibrary('./lib/fasmdm',
Glob("mdm/*.cpp"),
LIBPATH = ['lib'],
CPPPATH = ['.', 'utils', 'base', 'mdm', 'reloader'],
LIBS = ['fasutils', 'fas', 'glog', 'jsoncpp', 'pthread'],
CCFLAGS = FAS_CFLAGS
)
Program('bin/TcpServer', 'test/TcpServerTest.cpp',
LIBPATH = ['lib'],
CPPPATH = ['.', 'utils', 'base'],
LIBS = ['fasutils', 'fas', 'glog', 'jsoncpp', 'pthread'],
CCFLAGS = ['-Wall', '-static', '-std=c++11']
)
Program('bin/Client', 'test/Client.cpp',
LIBPATH = ['lib'],
CPPPATH = ['.', 'utils', 'base'],
LIBS = ['fasutils', 'fas', 'glog', 'jsoncpp', 'pthread'],
CCFLAGS = ['-Wall', '-static', '-std=c++11']
)