3 def build(target, options):
4 cmd = './waf configure --prefix=%s' % target.directory
5 if target.platform == 'linux':
7 if target.distro == 'centos':
8 # Centos builds using static boost, which means tests don't
9 # build as test/tests.cc defines BOOST_TEST_DYN_LINK
10 cmd += ' --disable-tests'
11 elif target.platform == 'windows':
12 cmd += ' --target-windows'
14 target.command('./waf build install')
17 if target.platform != 'windows':
18 target.set('LC_ALL', 'C')
19 target.command('./run-tests.sh')
21 def make_doxygen(target):
22 os.makedirs('build/doc')
23 target.command('doxygen')
24 return os.path.abspath('build/doc/html')