diff options
author | Carl Hetherington <carl@carlh.net> | 2012-01-23 15:01:08 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-01-23 15:01:08 +0000 |
commit | 62304d57c6a9206d3a98ef12885596e5872c3f08 (patch) | |
tree | 27954afd2e4a6f154f81beea52b7d4e16da4324b /libs/ardour/wscript | |
parent | 61c57e7c4dad4b1332ea54f76d00bade38fbfc1e (diff) |
Basic process thread profiling code.
git-svn-id: svn://localhost/ardour2/branches/3.0@11310 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/wscript')
-rw-r--r-- | libs/ardour/wscript | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript index 5910c46e0e..b31981ffe0 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -464,6 +464,38 @@ def build(bld): elif bld.env['build_target'] == 'x86_64': testobj.source += [ 'sse_functions_64bit.s' ] + # Profiling + profilingobj = bld(features = 'cxx cxxprogram') + profilingobj.source = ''' + test/dummy_lxvst.cc + test/profiling/runpc.cc + '''.split() + + profilingobj.includes = obj.includes + profilingobj.uselib = ['CPPUNIT','SIGCPP','JACK','GLIBMM','GTHREAD', + 'SAMPLERATE','XML','LRDF','COREAUDIO'] + profilingobj.use = ['libpbd','libmidipp','libardour'] + profilingobj.name = 'libardour-profiling' + profilingobj.target = 'run-profiling' + profilingobj.install_path = '' + profilingobj.defines = [ + 'PACKAGE="libardour3profile"', + 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"', + 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"', + 'MODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"', + 'LOCALEDIR="' + os.path.join( + os.path.normpath(bld.env['DATADIR']), 'locale') + '"', + 'VAMP_DIR="' + os.path.join( + os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"' + ] + if bld.env['FPU_OPTIMIZATION']: + profilingobj.source += [ 'sse_functions_xmm.cc' ] + if (bld.env['build_target'] == 'i386' + or bld.env['build_target'] == 'i686'): + profilingobj.source += [ 'sse_functions.s' ] + elif bld.env['build_target'] == 'x86_64': + profilingobj.source += [ 'sse_functions_64bit.s' ] + def shutdown(): autowaf.shutdown() |