Bump libdcp version.
[libsub.git] / cscript
1 import os
2
3 def dependencies(target):
4     return (('libdcp', 'v1.2.8'),)
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.distro == 'debian' and target.version == 'unstable':
13             target.append_with_space('CXXFLAGS', '-std=c++11')
14     if target.debug:
15         cmd += ' --enable-debug'
16     if target.platform == 'windows':
17         cmd += ' --target-windows --disable-tests'
18
19     target.command(cmd)
20     target.command('./waf build install')
21
22 def make_doxygen(target):
23     os.makedirs('build/doc')
24     target.command('doxygen')
25     return os.path.abspath('build/doc/html')
26
27 def test(target):
28     if target.platform != 'windows':
29         target.set('LC_ALL', 'C')
30         target.command('run/tests')