summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-01-16 15:40:59 +0100
committerAlfred E. Heggestad <aeh@db.org>2016-01-16 15:40:59 +0100
commitee292a426a452dbb77c5c2cbd0ada3104431daec (patch)
tree6d4602b9d7141d75d2ac799ce7ab3d2dec5ac630 /mk
parentd9ffdfa6ac7b5ca3f26bcd4663c0a3e65b56535f (diff)
mk: add build detection of audiounit module for OSX
Diffstat (limited to 'mk')
-rw-r--r--mk/modules.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/mk/modules.mk b/mk/modules.mk
index 1ff4dae..8695814 100644
--- a/mk/modules.mk
+++ b/mk/modules.mk
@@ -7,6 +7,7 @@
#
# USE_ALSA ALSA audio driver
# USE_AMR Adaptive Multi-Rate (AMR) audio codec
+# USE_AUDIOUNIT AudioUnit audio driver for OSX/iOS
# USE_AVCAPTURE AVFoundation video capture for OSX/iOS
# USE_AVCODEC avcodec video codec module
# USE_AVFORMAT avformat video source module
@@ -204,6 +205,10 @@ USE_AVFOUNDATION := \
$(shell [ -d /System/Library/Frameworks/AVFoundation.framework ] \
&& echo "yes")
+USE_AUDIOUNIT := \
+ $(shell [ -d /System/Library/Frameworks/AudioUnit.framework ] \
+ && echo "yes")
+
ifneq ($(USE_AVFOUNDATION),)
USE_AVCAPTURE := yes
else
@@ -258,6 +263,9 @@ endif
ifneq ($(USE_AMR),)
MODULES += amr
endif
+ifneq ($(USE_AUDIOUNIT),)
+MODULES += audiounit
+endif
ifneq ($(USE_AVCAPTURE),)
MODULES += avcapture
endif