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 if (target.distro == 'debian' and target.version == 'unstable') or (target.distro == 'fedora' and target.version == '23'):
12 target.append_with_space('CXXFLAGS', '-std=c++11')
13 elif target.platform == 'windows':
14 cmd += ' --target-windows'
16 target.command('./waf build install')
19 if target.platform != 'windows':
20 target.set('LC_ALL', 'C')
21 target.command('./run-tests.sh')
23 def make_doxygen(target):
24 os.makedirs('build/doc')
25 target.command('doxygen')
26 return os.path.abspath('build/doc/html')