More deps.
[libdcp.git] / cscript
diff --git a/cscript b/cscript
index 72cc882ca18a3808d68920e577f528039f640424..3c3bfaf907c1fd0df04aaa3631f985827e004e2a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -77,6 +77,12 @@ def package(target, version):
         os.mkdir(d)
         for f in ['asdcp-cth.dll', 'cxml-0.dll', 'dcp-1.0.dll', 'kumu-cth.dll', 'libopenjp2.dll', 'dcpinfo.exe']:
             shutil.copyfile('%s/bin/%s' % (target.directory, f), os.path.join(d, f))
+
+        if target.bits == 32:
+            shutil.copyfile('%s/bin/libgcc_s_sjlj-1.dll' % target.windows_prefix, os.path.join(d, 'libgcc_s_sjlj-1.dll'))
+        else:
+            shutil.copyfile('%s/bin/libgcc_s_seh-1.dll' % target.windows_prefix, os.path.join(d, 'libgcc_s_seh-1.dll'))
+
         target.command('cd build && zip -9 -r libdcp-%s.zip %s' % (version, d))
         return os.path.abspath('build/libdcp-%s.zip' % version)