-
Notifications
You must be signed in to change notification settings - Fork 1
/
wscript
36 lines (28 loc) · 1.25 KB
/
wscript
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
name='convchecker'
JUBATUS_VERION='0.3.3'
def options(opt):
opt.load('compiler_cxx')
def configure(conf):
conf.env.CXXFLAGS += ['-O2', '-Wall', '-g', '-pipe']
conf.load('compiler_cxx')
conf.define('JUBATUS_VERSION', JUBATUS_VERION)
conf.check_cxx(lib = 'msgpack', mandatory = True)
conf.check_cxx(lib = 'glog', mandatory = True)
conf.check_cxx(lib = 'pficommon', mandatory = True)
conf.check_cxx(lib = 'pficommon_system', mandatory = True)
conf.check_cxx(lib = 'pficommon_concurrent', mandatory = True)
conf.check_cxx(lib = 'pficommon_network_mprpc', mandatory = True)
conf.check_cxx(lib = 'pficommon_math', mandatory = True)
conf.check_cxx(lib = 'jubatus_framework', mandatory = True)
conf.check_cxx(lib = 'jubacommon', mandatory = True)
conf.check_cxx(lib = 'jubacommon_mprpc', mandatory = True)
conf.check_cxx(lib = 'jubaconverter', mandatory = True)
conf.check_cxx(lib = 'jubamixer', mandatory = True)
def build(bld):
bld.program(
source = name+'_serv.cpp '+ name +'_impl.cpp',
target = 'juba' + name,
use = ['JUBATUS_FRAMEWORK', 'JUBACOMMON', 'JUBACOMMON_MPRPC', 'JUBACONVERTER', 'JUBAMIXER', 'PFICOMMON', 'PFICOMMON_CONCURRENT',
'PFICOMMON_NETWORK_MPRPC', 'PFICOMMON_SYSTEM', 'MSGPACK',
'GLOG']
)