summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-28 09:35:39 +0000
committerCarl Hetherington <cth@carlh.net>2020-11-23 23:31:38 +0100
commit6ad57df31007ba3329d2a5c1e97eb8e29558c7be (patch)
tree349406df43fcffdbedb5a85996f8672fa0f7701d /cscript
parentcebedb3c618be1d8fa5ad0678a0ce4351e14b2eb (diff)
Add cscript file.
Diffstat (limited to 'cscript')
-rw-r--r--cscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/cscript b/cscript
new file mode 100644
index 0000000..d97e1d9
--- /dev/null
+++ b/cscript
@@ -0,0 +1,12 @@
+
+def build(target, options):
+ cmd = './waf configure --prefix=%s ' % target.directory
+ if target.platform == 'linux':
+ cmd += ' --static'
+ elif target.platform == 'windows':
+ cmd += ' --target-windows'
+
+ target.append_with_space('LIBS', '-lboost_system')
+ target.append_with_space('LIBS', '-lboost_filesystem')
+ target.command(cmd)
+ target.command('./waf build install')