3 # Copyright (C) 2016-2020 Carl Hetherington <cth@carlh.net>
5 # This file is part of libcxml.
7 # libcxml is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # libcxml is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with libcxml. If not, see <http://www.gnu.org/licenses/>.
23 def build(target, options):
24 cmd = './waf configure --prefix=%s' % target.directory
25 if target.platform == 'linux':
27 if target.distro == 'centos' or (target.distro == 'ubuntu' and target.version == '16.04'):
28 cmd += ' --static-boost-test'
29 elif target.platform == 'windows':
30 cmd += ' --target-windows'
33 target.command('./waf build install')
35 def test(target, test):
36 if target.platform != 'windows':
37 target.set('LC_ALL', 'C')
38 target.command('./run-tests.sh')
40 def make_doxygen(target):
41 os.makedirs('build/doc')
42 target.command('doxygen')
43 return os.path.abspath('build/doc/html')