From: Carl Hetherington Date: Thu, 28 Jan 2016 09:35:39 +0000 (+0000) Subject: Add cscript file. X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=6ad57df31007ba3329d2a5c1e97eb8e29558c7be;p=asdcplib.git Add cscript file. --- 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')