Bump version
[libcxml.git] / cscript
1 import os
2
3 def build(target, options):
4     cmd = './waf configure --prefix=%s' % target.directory
5     if target.platform == 'linux':
6         cmd += ' --static'
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'
15     target.command(cmd)
16     target.command('./waf build install')
17
18 def test(target):
19     if target.platform != 'windows':
20         target.set('LC_ALL', 'C')
21         target.command('./run-tests.sh')
22
23 def make_doxygen(target):
24     os.makedirs('build/doc')
25     target.command('doxygen')
26     return os.path.abspath('build/doc/html')