Don't build dcpdumpimage unless we have {Image,Graphics}Magick
authorCarl Hetherington <cth@carlh.net>
Thu, 31 Aug 2023 21:40:32 +0000 (23:40 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 31 Aug 2023 21:41:04 +0000 (23:41 +0200)
tools/wscript

index 9ff5561784dbf15737fe0f59b2753a6a7cc15bc6..3ee04e9457db5960cd8e33a1cf54c76b6b56f879 100644 (file)
@@ -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