summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-25 19:08:26 +0000
committerDavid Robillard <d@drobilla.net>2009-02-25 19:08:26 +0000
commit8ad01238121232e1facdc5768ba683199e21bb32 (patch)
treec16d2074071075f1b3806d48820e26a81c652dd2 /libs
parentb8b6042e35fc10626cd5bd10d5b1c22d7acef76b (diff)
Make unit tests optional.
git-svn-id: svn://localhost/ardour2/branches/3.0@4658 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/evoral/wscript25
1 files changed, 13 insertions, 12 deletions
diff --git a/libs/evoral/wscript b/libs/evoral/wscript
index 54120cdd5e..91577b95c0 100644
--- a/libs/evoral/wscript
+++ b/libs/evoral/wscript
@@ -81,18 +81,19 @@ def build(bld):
obj.vnum = EVORAL_LIB_VERSION
obj.install_path = ''
- # Unit tests
- obj = bld.new_task_gen('cxx', 'program')
- obj.source = '''
- test/SequenceTest.cpp
- test/SMFTest.cpp
- test/testrunner.cpp
- '''
- obj.includes = ['.', './src']
- obj.uselib_local = 'libevoral'
- obj.uselib = 'CPPUNIT'
- obj.target = 'run-tests'
- obj.install_path = ''
+ if bld.env['HAVE_CPPUNIT']:
+ # Unit tests
+ obj = bld.new_task_gen('cxx', 'program')
+ obj.source = '''
+ test/SequenceTest.cpp
+ test/SMFTest.cpp
+ test/testrunner.cpp
+ '''
+ obj.includes = ['.', './src']
+ obj.uselib_local = 'libevoral'
+ obj.uselib = 'CPPUNIT'
+ obj.target = 'run-tests'
+ obj.install_path = ''
def shutdown():
autowaf.shutdown()