summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-18 15:07:41 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-18 15:07:41 +0100
commitc2bac22380bea453665a24c6f39200a977771daf (patch)
treea464d94724318b81484eb3011fa0a946205550c3 /cscript
parent564f68cb2c258e61c1e70950c9d036859ea8619a (diff)
parent59617eb2230e47b59882c4f9ca6092ce05f53cf1 (diff)
Merge master.
Diffstat (limited to 'cscript')
-rw-r--r--cscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/cscript b/cscript
new file mode 100644
index 00000000..5413fdbc
--- /dev/null
+++ b/cscript
@@ -0,0 +1,17 @@
+import os
+
+def build(env, target):
+ cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
+ if target.platform == 'linux':
+ cmd += ' --static-libdcp --static-openjpeg'
+ elif target.platform == 'windows':
+ cmd += ' --target-windows'
+ elif target.platform == 'osx':
+ cmd += ' --osx'
+ env.command(cmd)
+ env.command('./waf build install')
+
+def make_doxygen(env):
+ os.makedirs('build/doc')
+ env.command('doxygen')
+ return os.path.abspath('build/doc/html')