From: Carl Hetherington Date: Thu, 31 Aug 2023 21:40:32 +0000 (+0200) Subject: Don't build dcpdumpimage unless we have {Image,Graphics}Magick X-Git-Tag: v1.8.80~1 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=85a55e5a9f8c4693fade14f0f9ebba37ca168e0f;p=libdcp.git Don't build dcpdumpimage unless we have {Image,Graphics}Magick --- diff --git a/tools/wscript b/tools/wscript index 9ff55617..3ee04e94 100644 --- a/tools/wscript +++ b/tools/wscript @@ -41,8 +41,11 @@ def build(bld): obj.source = 'dcp%s.cc common.cc' % f obj.target = 'dcp%s' % f + other = ['dumpsub', 'decryptmxf', 'kdm', 'thumb', 'recover'] + if not bld.env.DISABLE_DUMPIMAGE: + other.append('dumpimage') - for f in ['dumpimage', 'dumpsub', 'decryptmxf', 'kdm', 'thumb', 'recover']: + for f in other: obj = bld(features='cxx cxxprogram') obj.use = ['libdcp%s' % bld.env.API_VERSION] obj.uselib = uselib