X-Git-Url: https://main.carlh.net/gitweb/?p=libcxml.git;a=blobdiff_plain;f=cscript;fp=cscript;h=f1063c75b2ae291d685f8fb67650ab3a01073ed1;hp=aa9f18c26816ba37ff4ff790d9abec9932a44f3f;hb=b56668780afcdaffc9e49649d87185c186cd5a18;hpb=5ff4c60f4982ec44d34e4cf0d04cab574a76883b diff --git a/cscript b/cscript index aa9f18c..f1063c7 100644 --- a/cscript +++ b/cscript @@ -1,9 +1,10 @@ - -def build(env, target): - cmd = './waf configure --prefix=%s' % env.work_dir_cscript() +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' - env.command(cmd) - env.command('./waf build install') + elif target.platform == 'osx': + cmd += ' --osx' + target.command(cmd) + target.command('./waf build install')