From 2b32ff2aea16ad128f2e883d8b44f4249ad5da0b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 3 Jul 2017 00:44:14 +0100 Subject: Tidy jpeg option passing. --- cscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cscript') diff --git a/cscript b/cscript index f81d0796..33e804a3 100644 --- a/cscript +++ b/cscript @@ -41,8 +41,8 @@ def dependencies(target, options): def build(target, options): cmd = './waf configure --disable-examples --prefix=%s' % target.directory - if 'jpeg' in options and options['jpeg'] == 'oj1': - cmd += ' --jpeg=oj1' + if 'jpeg' in options: + cmd += ' --jpeg=%s' % options['jpeg'] if target.platform == 'linux': cmd += ' --static' if target.distro == 'centos': -- cgit v1.2.3