From 2469c739d87d6a2bb0c9b9c1e2b2c69b0e981b97 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Dec 2011 02:59:31 +0000 Subject: Add serd_strtod(), serd_node_new_decimal(), and serd_node_new_integer() for locale-independent numeric node parsing/serialising. git-svn-id: http://svn.drobilla.net/serd/trunk@260 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 2d71f4c6..1ee9ec83 100644 --- a/wscript +++ b/wscript @@ -10,7 +10,7 @@ from waflib.extras import autowaf as autowaf import waflib.Logs as Logs, waflib.Options as Options # Version of this package (even if built as a child) -SERD_VERSION = '0.6.0' +SERD_VERSION = '0.7.0' SERD_MAJOR_VERSION = '0' # Library version (UNIX style major, minor, micro) @@ -119,6 +119,7 @@ def build(bld): export_includes = ['.'], source = lib_source, includes = ['.', './src'], + lib = ['m'], name = 'libserd', target = 'serd-%s' % SERD_MAJOR_VERSION, vnum = SERD_LIB_VERSION, @@ -132,6 +133,7 @@ def build(bld): export_includes = ['.'], source = lib_source, includes = ['.', './src'], + lib = ['m'], name = 'libserd_static', target = 'serd-%s' % SERD_MAJOR_VERSION, vnum = SERD_LIB_VERSION, @@ -143,22 +145,33 @@ def build(bld): obj = bld(features = 'c cstlib', source = lib_source, includes = ['.', './src'], + lib = ['m'], name = 'libserd_profiled', target = 'serd_profiled', install_path = '', cflags = [ '-fprofile-arcs', '-ftest-coverage', '-DSERD_INTERNAL' ]) - # Unit test program + # Unit test serdi obj = bld(features = 'c cprogram', source = 'src/serdi.c', includes = ['.', './src'], use = 'libserd_profiled', - lib = ['gcov'], + lib = ['m', 'gcov'], target = 'serdi_static', install_path = '', cflags = [ '-fprofile-arcs', '-ftest-coverage' ]) + # Unit test program + obj = bld(features = 'c cprogram', + source = 'src/serd_test.c', + includes = ['.', './src'], + use = 'libserd_profiled', + lib = ['m', 'gcov'], + target = 'serd_test', + install_path = '', + cflags = [ '-fprofile-arcs', '-ftest-coverage' ]) + # Utilities if bld.env['BUILD_UTILS']: obj = bld(features = 'c cprogram', @@ -258,6 +271,8 @@ def test(ctx): autowaf.pre_test(ctx, APPNAME) + autowaf.run_tests(ctx, APPNAME, ['./serd_test'], dirs=['.']) + os.environ['PATH'] = '.' + os.pathsep + os.getenv('PATH') nul = os.devnull autowaf.run_tests(ctx, APPNAME, [ -- cgit v1.2.1