Fix srgb_to_xyz and rec709_to_xyz to be the same (as they should be) and using Dennis...
[libdcp.git] / cscript
1 import os
2
3 def dependencies(target):
4     return (('libcxml', 'v0.11.0'), ('openjpeg-cdist', '5d8bffd'))
5
6 def build(target, options):
7     cmd = './waf configure --prefix=%s' % target.directory
8     if target.platform == 'linux':
9         cmd += ' --static --disable-tests'
10     elif target.platform == 'windows':
11         cmd += ' --target-windows'
12     elif target.platform == 'osx':
13         cmd += ' --osx'
14
15     if target.debug:
16         cmd += ' --enable-debug'
17
18     target.command(cmd)
19     target.command('./waf build install')
20
21 def make_doxygen(target):
22     os.makedirs('build/doc')
23     target.command('doxygen')
24     return os.path.abspath('build/doc/html')