summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-04 12:38:38 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-04 12:38:38 +0100
commit23b50d379328ee5b5d14cf31f2f64ffeb333edc5 (patch)
tree28ab5ea84886f96d70a0f06f81f7d5223b14ab5d /cscript
parente409a8b24d78684246e6dbf7092e1e1ac75da8ed (diff)
Add cscript.
Diffstat (limited to 'cscript')
-rw-r--r--cscript19
1 files changed, 19 insertions, 0 deletions
diff --git a/cscript b/cscript
new file mode 100644
index 0000000..a05fa0b
--- /dev/null
+++ b/cscript
@@ -0,0 +1,19 @@
+import os
+
+def dependencies(target):
+ return (('libcxml', '7b4ecc3'))
+
+def build(target, options):
+ cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
+ if target.platform == 'linux':
+ cmd += ' --static'
+ if target.debug:
+ cmd += ' --enable-debug'
+
+ target.command(cmd)
+ target.command('./waf build install')
+
+def make_doxygen(target):
+ os.makedirs('build/doc')
+ target.command('doxygen')
+ return os.path.abspath('build/doc/html')