-
Notifications
You must be signed in to change notification settings - Fork 1
/
wscript
38 lines (31 loc) · 1.22 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
#! /usr/bin/env python
import sys
sys.path.insert(0, sys.path[0]+'/waf_tools')
import os
import sferes
import hexapod_dart
def options(opt):
opt.load('hexapod_dart')
def configure(conf):
conf.get_env()['BUILD_GRAPHIC'] = False
conf.load('hexapod_dart')
conf.check_hexapod_dart()
def build(bld):
libs = 'HEXAPOD_DART HEXAPOD_CONTROLLER DART EIGEN BOOST_DART BOOST TBB '
graphic_libs = 'DART_GRAPHIC ' + libs
cxxflags = bld.get_env()['CXXFLAGS']
sferes.create_variants(bld,
source = 'hexa_duty.cpp',
use = 'sferes2',
uselib = libs,
target = 'hexa_duty',
cxxflags = cxxflags + ['-march=native'],
variants = ['TEXT', 'BINARY'])
# if bld.get_env()['BUILD_GRAPHIC'] == True:
# sferes.create_variants(bld,
# source = 'hexa_duty.cpp',
# use = 'sferes2',
# uselib = graphic_libs,
# cxxflags = cxxflags + ['-march=native'],
# target = 'hexa_duty',
# variants = ['GRAPHIC'])