-
Notifications
You must be signed in to change notification settings - Fork 4
/
wscript
49 lines (37 loc) · 1.49 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
36
37
38
39
40
41
42
43
44
45
46
47
48
import sys
sys.path.insert(0, sys.path[0]+'/waf_tools')
import os
import limbo
def options(opt):
opt.load('hexapod_dart')
opt.load('dart')
opt.load('boost')
def configure(conf):
conf.load('hexapod_dart')
conf.load('dart')
conf.load('boost')
# In boost you can use the uselib_store option to change the variable the libs will be loaded
boost_var = 'BOOST_ITE'
conf.check_boost(lib='regex system serialization', min_version='1.46', uselib_store=boost_var)
conf.check_dart()
conf.check_hexapod_dart()
conf.env.LIB_THREADS = ['pthread']
def build(bld):
hexa_libs = 'HEXAPOD_CONTROLLER DART EIGEN BOOST_ITE BOOST LIMBO LIBCMAES NLOPT '
hexa_graphic_libs = 'DART_GRAPHIC ' + hexa_libs
cxxflags = bld.get_env()['CXXFLAGS']
if bld.get_env()['BUILD_GRAPHIC'] == True:
limbo.create_variants(bld,
source = 'hexapod.cpp',
uselib_local = 'limbo',
uselib = hexa_graphic_libs,
includes=". ../../src ../ ./include",
cxxflags = cxxflags,
variants = ['GRAPHIC'])
limbo.create_variants(bld,
source = 'hexapod.cpp',
uselib_local = 'limbo',
uselib = hexa_libs,
includes=". ../../src ../ ./include",
cxxflags = cxxflags,
variants = ['SIMU'])