a05fa0b526d2ce690ec33f65284de775410c8056
[libsub.git] / cscript
1 import os
2
3 def dependencies(target):
4     return (('libcxml', '7b4ecc3'))
5
6 def build(target, options):
7     cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
8     if target.platform == 'linux':
9         cmd += ' --static'
10     if target.debug:
11         cmd += ' --enable-debug'
12
13     target.command(cmd)
14     target.command('./waf build install')
15
16 def make_doxygen(target):
17     os.makedirs('build/doc')
18     target.command('doxygen')
19     return os.path.abspath('build/doc/html')