summaryrefslogtreecommitdiff
path: root/libs/ardour/SConscript
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-11-21 03:34:43 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-11-21 03:34:43 +0000
commit0d7cfe66a69fb03be74e9ff187fa9874d0db13ae (patch)
tree3b01401ee2c82df08682a7946b57566c91d39fc2 /libs/ardour/SConscript
parente098a23fcc1c3d27236e6a4c20d3a870c24ab789 (diff)
Check for COREAUDIO by default. If found, define HAVE_WEAK_COREAUDIO.
git-svn-id: svn://localhost/ardour2/trunk@1147 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/SConscript')
-rw-r--r--libs/ardour/SConscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ardour/SConscript b/libs/ardour/SConscript
index d7beb62772..334cf60e4e 100644
--- a/libs/ardour/SConscript
+++ b/libs/ardour/SConscript
@@ -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':