Better error on JPEG2000 decode failure.
[libdcp.git] / cscript
1 import os
2
3 def build(env, target):
4     cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
5     if target.platform == 'linux':
6         cmd += ' --static-libdcp --static-openjpeg'
7     elif target.platform == 'windows':
8         cmd += ' --target-windows'
9     env.command(cmd)
10     env.command('./waf build install')
11
12 def make_doxygen(env):
13     os.makedirs('build/doc')
14     env.command('doxygen')
15     return os.path.abspath('build/doc/html')