aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 27eff662..2b9ec7fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,6 +28,7 @@ SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
OPTION(ALSA "Check for ALSA backend" ON)
OPTION(OSS "Check for OSS backend" ON)
OPTION(SOLARIS "Check for Solaris backend" ON)
+OPTION(MMDEVAPI "Check for MMDevApi" ON)
OPTION(DSOUND "Check for DirectSound backend" ON)
OPTION(WINMM "Check for Windows Multimedia backend" ON)
OPTION(PORTAUDIO "Check for PortAudio backend" ON)
@@ -405,6 +406,19 @@ IF(SOLARIS)
ENDIF()
ENDIF()
+# Check for MMDevApi backend
+IF(HAVE_WINDOWS_H)
+ IF(MMDEVAPI)
+ CHECK_INCLUDE_FILE(mmdeviceapi.h HAVE_MMDEVICEAPI_H)
+ IF(HAVE_MMDEVICEAPI_H)
+ SET(HAVE_MMDEVAPI 1)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/mmdevapi.c)
+
+ SET(BACKENDS "${BACKENDS} MMDevApi,")
+ ENDIF()
+ ENDIF()
+ENDIF()
+
# Check DSound/MMSystem backend
IF(DSOUND)
CHECK_INCLUDE_FILE(dsound.h HAVE_DSOUND_H)