aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt29
1 files changed, 15 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9901f511..6d343a62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -387,8 +387,9 @@ SET(ALC_OBJS Alc/ALc.c
Alc/hrtf.c
Alc/mixer.c
Alc/panning.c
- Alc/loopback.c
- Alc/null.c
+ # Default backends, always available
+ Alc/backends/loopback.c
+ Alc/backends/null.c
)
SET(BACKENDS "")
@@ -411,7 +412,7 @@ IF(ALSA)
CHECK_SHARED_FUNCTION_EXISTS(snd_pcm_open "alsa/asoundlib.h" asound "" HAVE_LIBASOUND)
IF(HAVE_LIBASOUND OR HAVE_DLFCN_H OR WIN32)
SET(HAVE_ALSA 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/alsa.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/alsa.c)
IF(HAVE_DLFCN_H OR WIN32)
SET(BACKENDS "${BACKENDS} ALSA,")
ELSE()
@@ -430,7 +431,7 @@ IF(OSS)
CHECK_INCLUDE_FILE(sys/soundcard.h HAVE_SYS_SOUNDCARD_H)
IF(HAVE_SYS_SOUNDCARD_H)
SET(HAVE_OSS 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/oss.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/oss.c)
SET(BACKENDS "${BACKENDS} OSS,")
ENDIF()
ENDIF()
@@ -443,7 +444,7 @@ 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(ALC_OBJS ${ALC_OBJS} Alc/backends/solaris.c)
SET(BACKENDS "${BACKENDS} Solaris,")
ENDIF()
ENDIF()
@@ -458,7 +459,7 @@ IF(SNDIO)
CHECK_SHARED_FUNCTION_EXISTS(sio_open "sndio.h" sndio "" HAVE_LIBSNDIO)
IF(HAVE_LIBSNDIO OR HAVE_DLFCN_H OR WIN32)
SET(HAVE_SNDIO 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/sndio.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/sndio.c)
IF(HAVE_DLFCN_H OR WIN32)
SET(BACKENDS "${BACKENDS} SndIO,")
ELSE()
@@ -478,7 +479,7 @@ IF(HAVE_WINDOWS_H)
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(ALC_OBJS ${ALC_OBJS} Alc/backends/mmdevapi.c)
SET(BACKENDS "${BACKENDS} MMDevApi,")
ENDIF()
@@ -495,7 +496,7 @@ IF(DSOUND)
CHECK_SHARED_FUNCTION_EXISTS(DirectSoundCreate "dsound.h" dsound "" HAVE_LIBDSOUND)
IF(HAVE_LIBDSOUND OR HAVE_DLFCN_H OR WIN32)
SET(HAVE_DSOUND 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/dsound.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/dsound.c)
IF(HAVE_DLFCN_H OR WIN32)
SET(BACKENDS "${BACKENDS} DirectSound,")
@@ -515,7 +516,7 @@ IF(HAVE_WINDOWS_H)
CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H -D_WIN32_WINNT=0x0500)
IF(HAVE_MMSYSTEM_H AND HAVE_LIBWINMM)
SET(HAVE_WINMM 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/winmm.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/winmm.c)
SET(BACKENDS "${BACKENDS} WinMM,")
ENDIF()
ENDIF()
@@ -531,7 +532,7 @@ IF(PORTAUDIO)
CHECK_SHARED_FUNCTION_EXISTS(Pa_Initialize "portaudio.h" portaudio "" HAVE_LIBPORTAUDIO)
IF(HAVE_LIBPORTAUDIO OR HAVE_DLFCN_H OR WIN32)
SET(HAVE_PORTAUDIO 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/portaudio.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/portaudio.c)
IF(HAVE_DLFCN_H OR WIN32)
SET(BACKENDS "${BACKENDS} PortAudio,")
ELSE()
@@ -552,7 +553,7 @@ IF(PULSEAUDIO)
CHECK_SHARED_FUNCTION_EXISTS(pa_context_new "pulse/pulseaudio.h" pulse "" HAVE_LIBPULSE)
IF(HAVE_LIBPULSE OR HAVE_DLFCN_H OR WIN32)
SET(HAVE_PULSEAUDIO 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/pulseaudio.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/pulseaudio.c)
IF(HAVE_DLFCN_H OR WIN32)
SET(BACKENDS "${BACKENDS} PulseAudio,")
ELSE()
@@ -571,7 +572,7 @@ IF(COREAUDIO)
CHECK_INCLUDE_FILE(/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h HAVE_COREAUDIO_FRAMEWORK)
IF(HAVE_COREAUDIO_FRAMEWORK)
SET(HAVE_COREAUDIO 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/coreaudio.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/coreaudio.c)
SET(BACKENDS "${BACKENDS} CoreAudio,")
SET(EXTRA_LIBS /System/Library/Frameworks/CoreAudio.framework ${EXTRA_LIBS})
SET(EXTRA_LIBS /System/Library/Frameworks/AudioUnit.framework ${EXTRA_LIBS})
@@ -589,7 +590,7 @@ IF(OPENSL)
CHECK_SHARED_FUNCTION_EXISTS(slCreateEngine "SLES/OpenSLES.h" OpenSLES "" HAVE_LIBOPENSLES)
IF(HAVE_LIBOPENSLES)
SET(HAVE_OPENSL 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/opensl.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/opensl.c)
SET(BACKENDS "${BACKENDS} OpenSL,")
SET(EXTRA_LIBS OpenSLES ${EXTRA_LIBS})
ENDIF()
@@ -602,7 +603,7 @@ ENDIF()
# Optionally enable the Wave Writer backend
IF(WAVE)
SET(HAVE_WAVE 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/wave.c)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/backends/wave.c)
SET(BACKENDS "${BACKENDS} WaveFile,")
ENDIF()