-
-def build(env, target):
- cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
- if target.platform == 'windows':
+def build(target, options):
+ cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
+ if target.platform == 'linux':
+ cmd += ' --static --disable-tests'
+ elif target.platform == 'windows':
cmd += ' --target-windows'
- env.command(cmd)
- env.command('./waf build install')
-
-
+ target.command(cmd)
+ target.command('./waf build install')