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