summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-18 16:32:58 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-18 16:32:58 +0100
commit5a53812dc2a182ccc53cf488a2749386e7df3b9c (patch)
treef546961d75586558fa04676690db067542cb0ec9 /cscript
parent1162697d2568bd5fa01b62f03916783eeb5d5b50 (diff)
Update cscript.
Diffstat (limited to 'cscript')
-rw-r--r--cscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/cscript b/cscript
index 501d354..8b33a22 100644
--- a/cscript
+++ b/cscript
@@ -1,2 +1,11 @@
-release_targets = ['source']
+def build(target):
+ cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
+ if target.platform == 'linux':
+ cmd += ' --static'
+ elif target.platform == 'windows':
+ cmd += ' --target-windows'
+ elif target.platform == 'osx':
+ cmd += ' --osx'
+ target.command(cmd)
+ target.command('./waf build install')