summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
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')