aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-06-08 02:01:11 -0700
committerChris Robinson <[email protected]>2010-06-08 02:01:11 -0700
commitf9e569099cffbf7ea2951ef96b837a2e0bb7afe6 (patch)
tree02f7ce6bbf2b452c6b7d91e6da553a86ed56ad39 /CMakeLists.txt
parent6fd6e4eacfc25d775368e7f2ba193cb69b48df89 (diff)
Make the Wave Writer backend optional
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe7bdb48..ebfa796a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,6 +32,7 @@ OPTION(DSOUND "Check for DirectSound backend" ON)
OPTION(WINMM "Check for Windows Multimedia backend" ON)
OPTION(PORTAUDIO "Check for PortAudio backend" ON)
OPTION(PULSEAUDIO "Check for PulseAudio backend" ON)
+OPTION(WAVE "Enable Wave Writer backend" ON)
OPTION(DLOPEN "Check for the dlopen API for loading optional libs" ON)
@@ -311,7 +312,6 @@ SET(ALC_OBJS Alc/ALc.c
Alc/alcThread.c
Alc/bs2b.c
Alc/null.c
- Alc/wave.c
)
SET(BACKENDS "")
@@ -424,8 +424,15 @@ IF(PULSEAUDIO)
ENDIF()
ENDIF()
+# Optionally enable the Wave Writer backend
+IF(WAVE)
+ SET(HAVE_WAVE 1)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/wave.c)
+ SET(BACKENDS "${BACKENDS} WaveFile,")
+ENDIF()
+
# This is always available
-SET(BACKENDS "${BACKENDS} WaveFile, Null")
+SET(BACKENDS "${BACKENDS} Null")
# Needed for openal.pc.in
SET(prefix ${CMAKE_INSTALL_PREFIX})