Bump version
[libsub.git] / cscript
diff --git a/cscript b/cscript
index c81493a6e4a8b7b7e2731bef97bba88a34afba38..5f10d4c754288466c859e4d3f3c47710d56aab83 100644 (file)
--- a/cscript
+++ b/cscript
@@ -1,9 +1,16 @@
 import os
 
+def dependencies(target):
+    return (('libdcp', 'v1.2.6'),)
+
 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':
+            target.append_with_space('CXXFLAGS', '-std=c++11')
     if target.debug:
         cmd += ' --enable-debug'
     if target.platform == 'windows':
@@ -16,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')