+def package(target, version):
+ if target.platform == 'windows':
+ d = 'build/libdcp-%s' % 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), d)
+ os.system('zip -9 -r build/libdcp-%s.zip d' % version)
+ return os.path.abspath('build/libdcp-%s.zip' % version)
+