summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-18 15:08:47 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-18 15:08:47 +0100
commit3d73fba2a4f92a08200571c77081604586e0dc93 (patch)
treed106dd8f60bbf084aae71070acc24c52cb3b97c5 /cscript
parent59617eb2230e47b59882c4f9ca6092ce05f53cf1 (diff)
cscript tweaks.
Diffstat (limited to 'cscript')
-rw-r--r--cscript10
1 files changed, 5 insertions, 5 deletions
diff --git a/cscript b/cscript
index 5413fdbc..30fd4aa6 100644
--- a/cscript
+++ b/cscript
@@ -1,17 +1,17 @@
import os
-def build(env, target):
- cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
+def build(target):
+ cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
if target.platform == 'linux':
cmd += ' --static-libdcp --static-openjpeg'
elif target.platform == 'windows':
cmd += ' --target-windows'
elif target.platform == 'osx':
cmd += ' --osx'
- env.command(cmd)
- env.command('./waf build install')
+ target.command(cmd)
+ target.command('./waf build install')
def make_doxygen(env):
os.makedirs('build/doc')
- env.command('doxygen')
+ target.command('doxygen')
return os.path.abspath('build/doc/html')