#
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'):
- return (('libcxml', 'a8d8cba'), ('openjpeg-cdist', '4233dd7'), ('asdcplib-cth', 'f3b0fb8'))
+ return (('libcxml', 'v0.15.5'), ('openjpeg-cdist', '4233dd7'), ('asdcplib-cth', 'f3b0fb8'))
else:
- return (('libcxml', 'a8d8cba'), ('openjpeg2-cdist', '4ce711a'), ('asdcplib-cth', 'f3b0fb8'))
+ return (('libcxml', 'v0.15.5'), ('openjpeg2-cdist', 'c40a3b8'), ('asdcplib-cth', 'f3b0fb8'))
def build(target, options):
cmd = './waf configure --disable-examples --prefix=%s' % target.directory
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')