diff options
author | David Robillard <d@drobilla.net> | 2011-04-27 23:36:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-27 23:36:19 +0000 |
commit | f3b65ffd392579728490916ba0d0ad9cbcdcbf66 (patch) | |
tree | c32c5c64114d6bf49e6afa66fb001a5ceb446e45 /wscript | |
parent | bb2c564579a402a92dbaa513b6a4c9641523efc5 (diff) | |
download | sord-f3b65ffd392579728490916ba0d0ad9cbcdcbf66.tar.gz sord-f3b65ffd392579728490916ba0d0ad9cbcdcbf66.tar.bz2 sord-f3b65ffd392579728490916ba0d0ad9cbcdcbf66.zip |
Remove boost and glibmm dependencies from sordmm.hpp.
Add C++ (sordmm.hpp) compilation test.
Fix utilities only building with --test.
git-svn-id: http://svn.drobilla.net/sord/trunk@92 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 31 |
1 files changed, 21 insertions, 10 deletions
@@ -110,16 +110,27 @@ def build(bld): cflags = test_cflags) autowaf.use_lib(bld, obj, 'GLIB SERD') - # Unit test programa - if bld.env['BUILD_UTILS']: - obj = bld(features = 'c cprogram', - source = 'src/sordi.c', - includes = ['.', './src'], - use = 'libsord_static', - linkflags = '-lgcov', - target = 'sordi_static', - install_path = '', - cflags = test_cflags) + # C++ build test + obj = bld(features = 'cxx cxxprogram', + source = 'src/sordmm_test.cpp', + includes = ['.', './src'], + use = 'libsord_static', + linkflags = '-lgcov', + target = 'sordmm_test', + install_path = '', + cflags = test_cflags) + autowaf.use_lib(bld, obj, 'GLIB SERD') + + # Command line utility + if bld.env['BUILD_UTILS']: + obj = bld(features = 'c cprogram', + source = 'src/sordi.c', + includes = ['.', './src'], + use = 'libsord_static', + linkflags = '-lgcov', + target = 'sordi_static', + install_path = '', + cflags = test_cflags) # Documentation autowaf.build_dox(bld, 'SORD', SORD_VERSION, top, out) |