3 def dependencies(target):
4 return (('asdcplib-cth', 'f3b0fb8'), ('libcxml', '25e945f'), ('libdcp', 'a1d530b'))
6 def build(target, options):
7 cmd = './waf configure --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' or target.distro == 'fedora' and target.version == '23'):
13 target.append_with_space('CXXFLAGS', '-std=c++11')
15 cmd += ' --enable-debug'
16 if target.platform == 'windows':
17 cmd += ' --target-windows --disable-tests'
20 target.command('./waf build install')
22 def make_doxygen(target):
23 os.makedirs('build/doc')
24 target.command('doxygen')
25 return os.path.abspath('build/doc/html')
27 def test(target, test):
28 if target.platform != 'windows':
29 target.set('LC_ALL', 'C')
31 target.command('run/tests')
33 target.command('run/tests --run_test=%s' % test)