Check for COREAUDIO by default. If found, define HAVE_WEAK_COREAUDIO.
git-svn-id: svn://localhost/ardour2/trunk@1147 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e098a23fcc
commit
0d7cfe66a6
|
@ -205,14 +205,19 @@ if conf.CheckCHeader('sys/vfs.h'):
|
|||
if conf.CheckCHeader('/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h'):
|
||||
ardour.Append(LINKFLAGS="-framework CoreMIDI")
|
||||
|
||||
if conf.CheckCHeader('/System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h'):
|
||||
ardour.Append(LINKFLAGS="-framework AudioToolbox")
|
||||
|
||||
if conf.CheckCHeader('/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h'):
|
||||
ardour.Append(CXXFLAGS="-DHAVE_WEAK_COREAUDIO")
|
||||
|
||||
if conf.CheckCHeader('/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h') and ardour['AUDIOUNITS']:
|
||||
ardour.Append(CXXFLAGS="-DHAVE_AUDIOUNITS")
|
||||
ardour.Append(LINKFLAGS="-framework AudioUnit")
|
||||
extra_sources += audiounit_files
|
||||
|
||||
if conf.CheckCHeader('/System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h') and ardour['COREAUDIO']:
|
||||
if ardour['COREAUDIO']:
|
||||
ardour.Append(CXXFLAGS="-DHAVE_COREAUDIO")
|
||||
ardour.Append(LINKFLAGS="-framework AudioToolbox")
|
||||
extra_sources += coreaudio_files
|
||||
|
||||
if env['CONFIG_ARCH'] == 'apple':
|
||||
|
|
|
@ -187,7 +187,7 @@ static inline cycles_t get_cycles (void)
|
|||
/* begin mach */
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
#ifdef HAVE_COREAUDIO
|
||||
#ifdef HAVE_WEAK_COREAUDIO
|
||||
#include <CoreAudio/HostTime.h>
|
||||
#else // Due to MacTypes.h and libgnomecanvasmm Rect conflict
|
||||
typedef unsigned long long UInt64;
|
||||
|
|
Loading…
Reference in New Issue
Block a user