Bump libcxml for Centos build fix.
[libdcp.git] / cscript
1 import os
2
3 def dependencies(target):
4     return (('libcxml', '911c706'), ('openjpeg-cdist', '13b69c2'))
5
6 def build(target, options):
7     cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
8     if target.platform == 'linux':
9         cmd += ' --static'
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')