summaryrefslogtreecommitdiff
path: root/tools/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-31 23:40:32 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-31 23:41:04 +0200
commit85a55e5a9f8c4693fade14f0f9ebba37ca168e0f (patch)
treee8c7ee77b6151dcf1de9b0859778173b0d0994af /tools/wscript
parent69bbedaa39eb2ff29ebd80be7dfc77b0aa2b06af (diff)
Don't build dcpdumpimage unless we have {Image,Graphics}Magick
Diffstat (limited to 'tools/wscript')
-rw-r--r--tools/wscript5
1 files changed, 4 insertions, 1 deletions
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