From 160d55ae1f3fe8d84ade777154c673d350e3c02c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 18 Apr 2013 21:40:15 +0100 Subject: cdist bits. --- cscript | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'cscript') diff --git a/cscript b/cscript index 9e0eaaac..09bd76bb 100644 --- a/cscript +++ b/cscript @@ -1,14 +1,9 @@ -release_targets = ['source'] - -def build(dep_prefix, install_prefix, target, static, parallel): - configure = './waf configure --prefix=%s' % install_prefix - if static: - configure += ' --static-openjpeg --static-libdcp' - - var = "CXXFLAGS=-I%s/include LINKFLAGS=-L%s/lib PKG_CONFIG_PATH=%s/lib/pkgconfig" % (dep_prefix, dep_prefix, dep_prefix) - - command('%s %s' % (var, configure)) - command('./waf build install') - - +def build(env, target): + cmd = './waf configure --prefix=%s' % env.work_dir(True) + if target.platform == 'linux': + cmd += ' --static-libdcp --static-openjpeg' + elif target.platform == 'windows': + cmd += ' --target-windows' + env.command(cmd) + env.command('./waf build install') -- cgit v1.2.3