summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/cscript b/cscript
index b81811a5..90762053 100644
--- a/cscript
+++ b/cscript
@@ -70,6 +70,14 @@ def build(target, options):
target.command(cmd)
target.command('./waf build install')
+def package(target, version):
+ if target.platform == 'windows':
+ d = 'build/libdcp-%s' % version
+ os.mkdir(d)
+ shutil.copyfile('build/src/tools/dcpinfo.exe', 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')