editor toggle button fix from lincoln; refresh location display when loop range chang...
[ardour.git] / libs / ardour / wscript
index 98bc7106f3a044700be8b641dc21af56f57e9716..172047bde397f40e913e831574e25007599c92b2 100644 (file)
@@ -48,6 +48,7 @@ def configure(conf):
        autowaf.check_pkg(conf, 'slv2', uselib_store='SLV2', atleast_version='0.6.4', mandatory=False)
        autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18')
        autowaf.check_pkg(conf, 'soundtouch-1.0', uselib_store='SOUNDTOUCH', mandatory=False)
+       autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False)
 
        conf.env.append_value('CXXFLAGS', '-DUSE_RUBBERBAND')
        conf.define('HAVE_RUBBERBAND', 1)
@@ -135,6 +136,9 @@ def build(bld):
                gdither.cc
                globals.cc
                import.cc
+                internal_return.cc
+                internal_send.cc
+               interpolation.cc
                 io.cc
                io_processor.cc
                jack_slave.cc
@@ -241,6 +245,19 @@ def build(bld):
                obj.source += ' lv2_plugin.cc lv2_event_buffer.cc uri_map.cc '
                obj.uselib += ' SLV2 '
                obj.cxxflags += ['-DHAVE_SLV2']
+               
+       if bld.env['HAVE_CPPUNIT']:
+               # Unit tests
+               testobj              = bld.new_task_gen('cxx', 'program')
+               testobj.source       = '''
+                       interpolation.cc
+                       tests/interpolation-test.cc
+                       tests/testrunner.cpp
+               '''
+               testobj.includes     = obj.includes + ['../pbd/']
+               testobj.uselib       = 'CPPUNIT SIGCPP JACK GLIBMM SAMPLERATE'
+               testobj.target       = 'run-tests'
+               testobj.install_path = ''
 
 def shutdown():
        autowaf.shutdown()