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