Try to build openjpeg1 where requested.
[libdcp.git] / cscript
diff --git a/cscript b/cscript
index a16bc8311501f5d310ae7f827898e2ae8c98043a..f81d0796606d6ffa304ec5265cfd9b55a9387a9a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -33,8 +33,8 @@
 
 import os
 
-def dependencies(target):
-    if target.platform == 'windows' and target.version == 'xp':
+def dependencies(target, options):
+    if (target.platform == 'windows' and target.version == 'xp') or ('jpeg' in options and options['jpeg'] == 'oj1'):
         return (('libcxml', '25e945f'), ('openjpeg-cdist',  '5d8bffd'), ('asdcplib-cth', 'f3b0fb8'))
     else:
         return (('libcxml', '25e945f'), ('openjpeg2-cdist', '8ea62cc'), ('asdcplib-cth', 'f3b0fb8'))