Fix comment.
[libdcp.git] / cscript
1 import os
2
3 def dependencies(target):
4     if target.platform == 'windows':
5         return ()
6     else:
7         # XXX: should be some versions in here
8         return (('libcxml', None), ('openjpeg-cdist', None))
9
10 def build(target):
11     cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
12     if target.platform == 'linux':
13         cmd += ' --static'
14     elif target.platform == 'windows':
15         cmd += ' --target-windows'
16     elif target.platform == 'osx':
17         cmd += ' --osx'
18
19     if target.debug:
20         cmd += ' --enable-debug'
21
22     target.command(cmd)
23     target.command('./waf build install')
24
25 def make_doxygen(target):
26     os.makedirs('build/doc')
27     target.command('doxygen')
28     return os.path.abspath('build/doc/html')