X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=cscript;h=51e98452556d672c30a2f7df42f30ed2fdd1acb7;hb=3cf34feb6e862968c28f0119fa16efea321474b9;hp=e580aaa9ea247c2c3799335f3c6ddbf8c8b76cdc;hpb=db50b07bedf73033eddea16a6c13686945ff6842;p=libsub.git diff --git a/cscript b/cscript index e580aaa..51e9845 100644 --- a/cscript +++ b/cscript @@ -1,7 +1,7 @@ import os def dependencies(target): - return (('libdcp', '19e00ec'),) + return (('asdcplib-cth', '162963e'), ('libcxml', 'v0.15.4')) def build(target, options): cmd = './waf configure --prefix=%s' % target.directory @@ -9,6 +9,8 @@ def build(target, options): cmd += ' --static' if target.distro == 'centos': cmd += ' --disable-tests' + if (target.distro == 'debian' and target.version == 'unstable' or target.distro == 'fedora' and target.version == '23'): + target.append_with_space('CXXFLAGS', '-std=c++11') if target.debug: cmd += ' --enable-debug' if target.platform == 'windows': @@ -21,3 +23,11 @@ def make_doxygen(target): os.makedirs('build/doc') target.command('doxygen') return os.path.abspath('build/doc/html') + +def test(target, test): + if target.platform != 'windows': + target.set('LC_ALL', 'C') + if test is None: + target.command('run/tests') + else: + target.command('run/tests --run_test=%s' % test)