Bump libcxml.
[libdcp.git] / cscript
1 import os
2
3 def dependencies(target):
4     return (('libcxml', '7fa910c'), ('openjpeg-cdist', '5d8bffd'))
5
6 def build(target, options):
7     cmd = './waf configure --disable-examples --prefix=%s' % target.directory
8     if target.platform == 'linux':
9         cmd += ' --static'
10         if target.distro == 'centos':
11             cmd += ' --disable-tests'
12     elif target.platform == 'windows':
13         cmd += ' --target-windows --disable-tests'
14     elif target.platform == 'osx':
15         cmd += ' --disable-tests'
16
17     if target.debug:
18         cmd += ' --enable-debug'
19
20     target.command(cmd)
21     target.command('./waf build install')
22
23 def make_doxygen(target):
24     os.makedirs('build/doc')
25     target.command('doxygen')
26     return os.path.abspath('build/doc/html')
27
28 def test(target):
29     if target.platform != 'windows':
30         target.set('LC_ALL', 'C')
31         target.command('run/tests')