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)