diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-02 12:47:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-02 12:47:17 +0100 |
| commit | 938f413bb4ebecd51c805027e331cb7eb0ca9502 (patch) | |
| tree | 27fa1618657055b7421d4987b25987b48958b764 /cscript | |
| parent | c2bac22380bea453665a24c6f39200a977771daf (diff) | |
| parent | f51e1ec6f5cacd05196ce7625709c18f6b38f63e (diff) | |
Merge master; at least partially.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -1,17 +1,28 @@ import os -def build(env, target): - cmd = './waf configure --prefix=%s' % env.work_dir_cscript() +def dependencies(target): + if target.platform == 'windows': + return () + else: + # XXX: should be some versions in here + return (('libcxml', None), ('openjpeg-cdist', None)) + +def build(target): + cmd = './waf configure --prefix=%s' % target.work_dir_cscript() if target.platform == 'linux': - cmd += ' --static-libdcp --static-openjpeg' + cmd += ' --static' elif target.platform == 'windows': cmd += ' --target-windows' elif target.platform == 'osx': cmd += ' --osx' - env.command(cmd) - env.command('./waf build install') -def make_doxygen(env): + if target.debug: + cmd += ' --enable-debug' + + target.command(cmd) + target.command('./waf build install') + +def make_doxygen(target): os.makedirs('build/doc') - env.command('doxygen') + target.command('doxygen') return os.path.abspath('build/doc/html') |
