summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-09-07 14:34:14 -0700
committerChris Robinson <[email protected]>2008-09-07 14:34:14 -0700
commit16d96eed7bc8b412f06dccfa9c01f1bb7856bb91 (patch)
tree35ce4268f45597750248fe5093022c42710e8a51 /CMakeLists.txt
parentfa76168683863aeab8430110ffed58cf1041677e (diff)
Add a Solaris playback backend
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e22ad27..a2afea99 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,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(DSOUND "Check for DirectSound backend" ON)
OPTION(WINMM "Check for Windows Multimedia backend" ON)
@@ -264,6 +265,16 @@ IF(OSS)
ENDIF()
ENDIF()
+# Check Solaris backend
+IF(SOLARIS)
+ CHECK_INCLUDE_FILE(sys/audioio.h HAVE_SYS_AUDIOIO_H)
+ IF(HAVE_SYS_AUDIOIO_H)
+ SET(HAVE_SOLARIS 1)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/solaris.c)
+ SET(BACKENDS "${BACKENDS} Solaris,")
+ ENDIF()
+ENDIF()
+
# Check DSound/MMSystem backend
IF(HAVE_WINDOWS_H)
IF(DSOUND)