summaryrefslogtreecommitdiff
path: root/libs/ardour/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-27 17:47:54 +0000
committerDavid Robillard <d@drobilla.net>2009-10-27 17:47:54 +0000
commitda85f65ec01ce50372f70393db7421d170754b10 (patch)
tree0f53af1a6e316de6808a3adea04c74370568ce52 /libs/ardour/wscript
parentd51ce9ea719079776450734e1262bb2550752086 (diff)
Update BBT_Time add and subtract interfaces (stubs, just for unit test building).
Build unit tests against libardour itself rather than compiling in bits. git-svn-id: svn://localhost/ardour2/branches/3.0@5949 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/wscript')
-rw-r--r--libs/ardour/wscript21
1 files changed, 17 insertions, 4 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript
index 57b2a6cdeb..ac6559f2b8 100644
--- a/libs/ardour/wscript
+++ b/libs/ardour/wscript
@@ -55,7 +55,6 @@ libardour_sources = [
'automation.cc',
'automation_control.cc',
'automation_list.cc',
- 'bbt_time.cc',
'beats_frames_converter.cc',
'broadcast_info.cc',
'buffer.cc',
@@ -316,16 +315,30 @@ def build(bld):
# Unit tests
testobj = bld.new_task_gen('cxx', 'program')
testobj.source = '''
- interpolation.cc
test/BBTTest.cpp
test/InterpolationTest.cpp
test/testrunner.cpp
- '''
+ '''.split()
testobj.includes = obj.includes + ['../pbd/']
- testobj.uselib = 'CPPUNIT SIGCPP JACK GLIBMM SAMPLERATE'
+ testobj.uselib = 'CPPUNIT SIGCPP JACK GLIBMM SAMPLERATE XML LRDF'
+ testobj.uselib_local = 'libpbd libmidipp libardour'
testobj.name = 'libardour-tests'
testobj.target = 'run-tests'
testobj.install_path = ''
+ testobj.cxxflags = ['-DPACKAGE="libardour3test"']
+ testobj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
+ testobj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"']
+ testobj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
+ testobj.cxxflags += ['-DLOCALEDIR="' + os.path.join(
+ os.path.normpath(bld.env['DATADIR']), 'locale') + '"']
+ testobj.cxxflags += ['-DVAMP_DIR="' + os.path.join(
+ os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"']
+ if bld.env['FPU_OPTIMIZATION']:
+ testobj.source += [ 'sse_functions_xmm.cc' ]
+ if bld.env['build_target'] == 'i386' or bld.env['build_target'] == 'i686':
+ testobj.source += [ 'sse_functions.s' ]
+ elif bld.env['build_target'] == 'x86_64':
+ testobj.source += [ 'sse_functions_64bit.s' ]
def shutdown():
autowaf.shutdown()