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)
gdither.cc
globals.cc
import.cc
+ internal_return.cc
+ internal_send.cc
+ interpolation.cc
io.cc
io_processor.cc
jack_slave.cc
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()