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