dmalloc link support
git-svn-id: svn://localhost/trunk/ardour2@491 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
979b95a56e
commit
5e6703c481
20
SConstruct
20
SConstruct
@ -35,7 +35,8 @@ opts.AddOptions(
|
||||
EnumOption('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'tiger', 'panther', 'none' ), ignorecase=2),
|
||||
BoolOption('FPU_OPTIMIZATION', 'Build runtime checked assembler code', 1),
|
||||
BoolOption('FFT_ANALYSIS', 'Include FFT analysis window', 0),
|
||||
BoolOption('SURFACES', 'Build support for control surfaces', 0)
|
||||
BoolOption('SURFACES', 'Build support for control surfaces', 0),
|
||||
BoolOption('DMALLOC', 'Compile and link using the dmalloc library', 0)
|
||||
)
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
@ -414,6 +415,23 @@ else:
|
||||
|
||||
libraries['usb'] = conf.Finish ()
|
||||
|
||||
#
|
||||
# Check for dmalloc
|
||||
|
||||
libraries['dmalloc'] = LibraryInfo ()
|
||||
|
||||
#
|
||||
# look for the threaded version
|
||||
#
|
||||
|
||||
conf = Configure (libraries['dmalloc'])
|
||||
if conf.CheckLib ('dmallocth', 'dmalloc_shutdown'):
|
||||
have_libdmalloc = True
|
||||
else:
|
||||
have_libdmalloc = False
|
||||
|
||||
libraries['dmalloc'] = conf.Finish ()
|
||||
|
||||
#
|
||||
|
||||
#
|
||||
|
@ -49,6 +49,10 @@ gtkardour.Merge ([
|
||||
libraries['libglademm']
|
||||
])
|
||||
|
||||
if gtkardour['DMALLOC']:
|
||||
gtkardour.Merge([libraries['dmalloc']])
|
||||
gtkardour.Append(CCFLAGS='-DUSE_DMALLOC')
|
||||
|
||||
if gtkardour['FFT_ANALYSIS']:
|
||||
gtkardour.Merge ([libraries['fftw3f']])
|
||||
gtkardour.Append(CCFLAGS='-DFFT_ANALYSIS')
|
||||
|
Loading…
Reference in New Issue
Block a user