#
import os
+import shutil
def dependencies(target, options):
if (target.platform == 'windows' and target.version == 'xp') or (options is not None and 'jpeg' in options and options['jpeg'] == 'oj1'):
target.command(cmd)
target.command('./waf build install')
+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)
+
def make_doxygen(target):
os.makedirs('build/doc')
target.command('doxygen')