diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-16 22:04:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-21 20:29:50 +0100 |
| commit | f011483904ff238ce6bd5e9f4e6d9d9ba5d55b73 (patch) | |
| tree | 0f9d3887fea2a39c46519e5c9a3fecb20d15c497 /cscript | |
| parent | 067ac061ce1ade925d64a7c411403455e97d1c38 (diff) | |
Add cscript file.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 += f' --target-windows-{target.bits}' + + target.append_with_space('LIBS', '-lboost_system') + target.append_with_space('LIBS', '-lboost_filesystem') + target.command(cmd) + target.command('./waf build install') |
