3 def dependencies(target):
4 return (('libcxml', 'd4c2770'), ('openjpeg-cdist', '5d8bffd'))
6 def build(target, options):
7 cmd = './waf configure --disable-examples --prefix=%s' % target.directory
8 if target.platform == 'linux':
10 if target.distro == 'centos':
11 cmd += ' --disable-tests'
12 if target.distro == 'debian' and target.version == 'unstable':
13 target.append_with_space('CXXFLAGS', '-std=c++11')
14 elif target.platform == 'windows':
15 cmd += ' --target-windows --disable-tests'
16 elif target.platform == 'osx':
17 cmd += ' --disable-tests'
20 cmd += ' --enable-debug'
23 target.command('./waf build install')
25 def make_doxygen(target):
26 os.makedirs('build/doc')
27 target.command('doxygen')
28 return os.path.abspath('build/doc/html')
31 if target.platform != 'windows':
32 target.set('LC_ALL', 'C')
33 target.command('run/tests')