eebb00c092e568a14c0af3ce513d34f6b4ee834d from master; limit DCP channels and bump...
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index d5cb28aef8b769764967728a0bd3ff336979d564..3864fbaa1731090f3995e4a40a70c54b8a4bcc0a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -155,12 +155,14 @@ def make_control(debian_version, bits, filename, debug):
         print >>f,''
 
 def dependencies(target):
-    return (('ffmpeg-cdist', '0558484'),
-            ('libdcp', '1.0'),
-            ('libsub', None))
+    return (('ffmpeg-cdist', 'f69bb08'),
+            ('libdcp', '8e7f9e4'),
+            ('libsub', 'f66b11f'))
 
 def build(target, options):
     cmd = './waf configure --prefix=%s' % target.directory
+    if target.debug:
+        cmd += ' --enable-debug'
     if target.platform == 'windows':
         cmd += ' --target-windows'
     elif target.platform == 'linux':
@@ -185,6 +187,7 @@ def package_windows(target):
     target.command('sed -i "s~%%resources%%~%s/platform/windows~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), target.bits))
     target.command('sed -i "s~%%static_deps%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.windows_prefix, target.bits))
     target.command('sed -i "s~%%cdist_deps%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.directory, target.bits))
+    target.command('sed -i "s~%%mingw%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.mingw_path, target.bits))
     target.command('sed -i "s~%%binaries%%~%s/build~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), target.bits))
     target.command('sed -i "s~%%bits%%~32~g" build/platform/windows/installer2.%s.nsi' % target.bits)
     target.command('makensis build/platform/windows/installer2.%s.nsi' % target.bits)