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