X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=cscript;h=08c76b35fe8adaef69a63aed0001692d69694613;hb=f0b58ee5b07b90e1a9023ef2ca60a0373fcceced;hp=03f4bf600b5f959140a484146736a014182b1889;hpb=32cb7e17f798ff21f613333bdaca1fae1aee3c84;p=libsub.git diff --git a/cscript b/cscript index 03f4bf6..08c76b3 100644 --- a/cscript +++ b/cscript @@ -1,15 +1,20 @@ import os +def dependencies(target): + return (('asdcplib-cth', '5f32ac0'), ('libcxml', 'v0.15.1')) + def build(target, options): cmd = './waf configure --prefix=%s' % target.directory if target.platform == 'linux': 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': cmd += ' --target-windows --disable-tests' - if target.distro == 'centos': - cmd += ' --disable-tests' target.command(cmd) target.command('./waf build install') @@ -18,3 +23,8 @@ def make_doxygen(target): os.makedirs('build/doc') target.command('doxygen') return os.path.abspath('build/doc/html') + +def test(target): + if target.platform != 'windows': + target.set('LC_ALL', 'C') + target.command('run/tests')