Fix install prefix.
[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/%s' % (target.work_dir_cscript(), target.install_prefix)
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     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')